Compilation error with gcc4.3 wchar.h:335: first defined here collect2: ld returned 1 exit status *** Error code 1 clearmake: Error: Build script failed for

linux linux compile.gcc@gmail.com
Wed Apr 22 18:41:00 GMT 2009


Hi,
I am using gcc4.3 and glibc 2.8. During compilation am getting the
compilation mentioned below.
Can any one help me out.
I am not sure if it is a bug of new gcc.

/glibc/x86-linux2/../sysroot/usr/include/wc
har.h:341: multiple definition of `wctob'
/opt/i686/base/common/l2tr/src/Communicat
ion/CommInterface.lo:/sysroot/emer_atca7101-glibc_cgl/x86-linux2/../s
ysroot/usr/include/wchar.h:341: first defined here
/opt/i686/base/common/l2tr/src/Communicat
ion/UnixDomainSocket.lo: In function `btowc':
/sysroot/emer_atca7101-glibc_cgl/x86-linux2/../sysroot/usr/include/wc
har.h:335: multiple definition of `btowc'
/opt/i686/base/common/l2tr/src/Communicat
ion/CommInterface.lo:/sysroot/emer_atca7101-glibc_cgl/x86-linux2/../s
ysroot/usr/include/wchar.h:335: first defined here
collect2: ld returned 1 exit status
*** Error code 1
clearmake: Error: Build script failed for
"/opt/i686/lib/libl2TraceRouteCommunication


Some background of this error. I have add these 6 line to my .cpp file
to avoid some error(error: '__extern_inline' does not name a type)

#ifndef __extern_inline
#define __extern_inline
#endif
#ifndef __wur
#define __wur
#endif

Thanks



More information about the Gcc-help mailing list