Rajesh Bhattacharya wrote:
Boris,
I appreciate your attention & support.
Now I attempted to build xerces library using g++ compiler. I did not
find any instruction for that, but followed the following steps:
export OBJECT_MODE=64
./configure CFLAGS="-maix64" CXXFLAGS="-maix64" LDFLAGS="-maix64"
gmake
Now gmake spews too many ld errors, e.g.
/bin/sh ../libtool --tag=CXX --mode=link g++ -maix64 -D_THREAD_SAFE
-maix64 -o StdInParse src/StdInParse/StdInParse.o
src/StdInParse/StdInParseHandlers.o ../src/libxerces-c.la -lnsl
-lpthreads
g++ -maix64 -D_THREAD_SAFE -maix64 -o StdInParse
src/StdInParse/StdInParse.o src/StdInParse/StdInParseHandlers.o
../src/.libs/libxerces-c.a -lnsl -lpthreads
ld: 0711-224 WARNING: Duplicate symbol: non-virtual thunk to
xercesc_3_0::HandlerBase::resetErrors()
If you're only getting these duplicate symbol warnings, then it's OK.
The AIX linker is not savvy enough to understand that there will be many
duplicate weak symbols when linking C++ objects, because of inline
functions and template instantiations.
It's been several years since I've worked on AIX, so there may even be a
linker option now to suppress duplicate weak symbols.
Dave