473,796 Members | 2,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Conflicts in memcopy declaration


Hi ,

I am trying to use "User-difned allocator " but on compilation it is
giving conflicts for memcopy
declarations with in string.h .

Please refer the below code :

any suggestions how to resolve this???

g++ -g -DUNIX -DLINUX -DX86 -DCONIC_X86 -DCOMP_X86 -DDRAW_X86 -
DDR_X86 -DDEBUG -DDEBUGforCDC -DDEBUG_COMMANDL OG -DSUPPORT_IPS -
DTARGET_IRIPS -DTARGET_06S -DUSE_MEMCPY -DBUGFIX_RPCS_SP L_FLUSH -
DBUGFIX_POLYLIN E_CLIP -I. -I../src -I../include -I../../include -I../
include/gps -I../../libge/include -I../../libdraw3/include -I../../
libipa/inc -I../../libdi/inc -c -o render.o ../src/render.c
In file included from /usr/include/g++-3/stl_algobase.h: 48,
from /usr/include/g++-3/vector:30,
from ../include/pr_internal.h:1 5,
from ../include/object.h:9,
from ../include/spool.h:13,
from ../src/render.c:27:
/usr/include/string.h:242: declaration of C function `void memcpy
(void
*, const void *, unsigned int)' conflicts with
/usr/include/string.h:42: previous declaration `void *memcpy (void *,
const void *, unsigned int)' here

Feb 13 '07 #1
2 3874
On Feb 13, 7:51 am, "JeanDean" <rohits...@gmai l.comwrote:
Hi ,

I am trying to use "User-difned allocator " but on compilation it is
giving conflicts for memcopy
declarations with in string.h .

Please refer the below code :

any suggestions how to resolve this???

g++ -g -DUNIX -DLINUX -DX86 -DCONIC_X86 -DCOMP_X86 -DDRAW_X86 -
DDR_X86 -DDEBUG -DDEBUGforCDC -DDEBUG_COMMANDL OG -DSUPPORT_IPS -
DTARGET_IRIPS -DTARGET_06S -DUSE_MEMCPY -DBUGFIX_RPCS_SP L_FLUSH -
DBUGFIX_POLYLIN E_CLIP -I. -I../src -I../include -I../../include -I../
include/gps -I../../libge/include -I../../libdraw3/include -I../../
libipa/inc -I../../libdi/inc -c -o render.o ../src/render.c
In file included from /usr/include/g++-3/stl_algobase.h: 48,
from /usr/include/g++-3/vector:30,
from ../include/pr_internal.h:1 5,
from ../include/object.h:9,
from ../include/spool.h:13,
from ../src/render.c:27:
/usr/include/string.h:242: declaration of C function `void memcpy
(void
*, const void *, unsigned int)' conflicts with
/usr/include/string.h:42: previous declaration `void *memcpy (void *,
const void *, unsigned int)' here
Post your question to gnu.g++.help
m

Feb 13 '07 #2

JeanDean wrote:
>
/usr/include/string.h:242: declaration of C function
`void memcpy (void *, const void *, unsigned int)'
wrong std::memcpy declaration "void memcpy"

#include <string.h>

void *memcpy(void *dest, const void *src, int num);

Description
-----------

This function copies NUM bytes from SOURCE to DEST. It assumes that
the source and destination regions don't overlap; if you need to copy
overlapping regions, use `memmove' instead.

Return Value
------------

DEST

Portability
-----------

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

conflicts with
/usr/include/string.h:42: previous declaration
`void *memcpy (void *, const void *, unsigned int)' here

--
Maksim A. Polyanin

"In thi world of fairy tales rolls are liked olso"
/Gnume/
Feb 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3467
by: Hamish | last post by:
Consider the following code: #include <iostream> typedef int Thingo; namespace A { namespace B {
2
4797
by: Jean-Baptiste | last post by:
Hi, I am currently porting a C++ project (linux version) under windows. This project uses the STL stuff. When I try to compile and built my project, I get a lot of errors. The main part of them seems to be due to the stl library. Indeed, it seems that the standard libary redefines some structure already defined in xutility. I tryed some tricks without any success.
2
359
by: tomek | last post by:
Can anybody explain why can I not get rid of the above message in the following class definition? Thank you in advance. class BasicMidReader : public TMemoryStream { //some private date public: BasicMidReader(char* FN)
12
1803
by: christopherlmarshall | last post by:
Suppose you want to write a subclass of some existing class you are importing from a module you didn't write and that you don't want to study the internals of, and you want to define a data member i in your constructor. As in the following: from module1 import A class B(A):
0
1528
by: John | last post by:
Hi Access 200. I have a replica and its associated master. When I try to open any of these dbs, I get the message "This member of the replica set has conflicts from synchronizing changes with other members. Do you want to resolve these conflicts now?". When I select 'Yes', I get the below message. Basically the conflict revolver is not coming up so I can't view and resolve the conflicts. What is the problem and how can I fix it? This...
5
3564
by: Eric | last post by:
After attempting to build a solution, I receive the error message; "One or more dependent assemblies have version conflicts" "Do you want to fix these conflicts by adding binding redirect records in the app.config file?" I received this after changing the assembly version in two of the solution's projects to What does this error mean?
11
10996
by: rherring | last post by:
Hello, I have some C++ code that builds against 2 headers files that contain the same function name declaration (gethostname). The header files are not directly included. They are included via other header files. How can I resovle this error? The error (GCC 3.3.2 on Solaris 9): /usr/include/unistd.h:278: error: declaration of C function `int
5
4308
by: thetrueaplus | last post by:
Hey. I'm trying to make a couple of enums work, however mingW isn't compiling it because it says the previous declaration of none conflicts. is there a way to solve this? namespace Namespace { enum Gender // m or f {
1
1082
by: Christian Fröschlin | last post by:
I have an assembly "A" which contains a Windows Control and has been compiled with C# in .NET 1.0, and I have now attempted to use this from a C++ 2005 Windows Forms Application "B". I can add a reference to the assembly and add a control to the form without problems, but when compiling I get a heap of errors complaining about conflicts between symbols from differing version of System.Windows.Forms and similar: ...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5453
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.