bug-commoncpp
[Top][All Lists]
Advanced

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

Re: Errors compiling commonc++2 1.1.0 on AIX 4.3.2


From: Jason . Majors
Subject: Re: Errors compiling commonc++2 1.1.0 on AIX 4.3.2
Date: Thu, 26 Feb 2004 15:10:25 -0700

> I'm trying to compile commonc++2-1.1.0 on AIX 4.3.2 using g++ 2.95.3.
> I get this error message:
> .../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 *'

> memcpy, as defined in /usr/include/string.h, is returning a void 
pointer,
> not void.
> Does anybody know what's wrong, or have an idea on how I can get around
> this and get it to compile?

> Thanks.

> 
I found a clue, which is more perplexing. It thinks memcpy is being 
defined elsewhere:

/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

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

Why would bcopy override the declaration of memcpy?





reply via email to

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