help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with vectors in g++


From: JeanDean
Subject: Problem with vectors in g++
Date: 13 Feb 2007 01:52:55 -0800
User-agent: G2/1.0

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

I think one is for BSD version and other one is for normal memcopy.


Line 242 in String.h
///////
#if defined __USE_BSD
/* Copy N bytes of SRC to DEST (like memmove, but args reversed).  */
extern void bcopy (__const void *__src, void *__dest, size_t __n)
__THROW;
//////

Please refer the below compile error  log:

any suggestions how to resolve this???

g++ -g -DUNIX -DLINUX -DX86 -DCONIC_X86 -DCOMP_X86 -DDRAW_X86 -
DDR_X86   -DDEBUG -DDEBUGforCDC -DDEBUG_COMMANDLOG -DSUPPORT_IPS -
DTARGET_IRIPS -DTARGET_06S -DUSE_MEMCPY -DBUGFIX_RPCS_SPL_FLUSH -
DBUGFIX_POLYLINE_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:15,
                 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]