This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help compiling gnu commonc++2


I'm trying to compile commonc++2-1.1.0 on AIX 4.3.2 using g++ 2.95.3 (the 
latest we can get here unfortunately).

I get this error message:
/usr/include/strings.h:60: declaration of C function `void memcpy(void *, 
const void *, long unsigned int)' conflicts with
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/string.h:92: 
previous declaration `void * memcpy(void *, const void *, long unsigned 
int)' here
...
.../straits.h: In function `static char *
string_char_traits<char>::copy(char *, const char *, long unsigned int)':
.../straits.h:127: cannot convert `memcpy(s1, s2, n)' from type `void' to
type `char *'

However line 60 of strings.h is this:
extern void bcopy(const void *, void *, size_t);

Does anybody know what's wrong, or have an idea on how I can get around
this and get it to compile?
Why would bcopy override the declaration of memcpy?

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]