I'm using the binaries from the download site
(xerces-c_2_8_0-powerpc-aix-xlc_7_0.tar.gz) along with gcc 3.4.3. I copied the
example from the programming section of the website
(http://xerces.apache.org/xerces-c/program-dom.html#ConstructXercesDOMParser)
to a file and try to compile it and get a bunch of undefined symbol errors:
> gcc --version
gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> g++ -I/home1/jamarsha/aix/build/xerces28/include
> -L/home1/jamarsha/aix/xerces28/lib -Lxerces-c test.C
ld: 0711-317 ERROR: Undefined symbol:
xercesc_2_8::XMLUni::fgXercescDefaultLocale
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_8::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_2_8::PanicHandler*, xercesc_2_8::MemoryManager*, bool)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_8::XMLString::transcode(unsigned short const*)
...
I have also downloaded the source code to 2.8 and built it with xlC and get the
same error using those binaries.
Any thoughts?
Thanks