[xsd-users] Undefined Symbol error while trying to 'make'
Boris Kolpackov
boris at codesynthesis.com
Fri Dec 9 07:49:40 EST 2011
Hi Preethi,
Ramalingam, Preethi <preethi.ramalingam at credit-suisse.com> writes:
> /share/mercury/dev/pramali4/xsd-3.3.0-sparc-solaris/examples/cxx/parser/
> hello $ make
> g++ [...]
>
> Undefined first referenced
> symbol in file
> xercesc_3_1::XMLAttDefList::serialize(xercesc_3_1::XSerializeEngine&) driver.o
The problem is that you use g++ to compile the example but the Xerces-C++
library was built with Sun CC. If you want to use Sun CC (as you indicated
in your previous email), then you should do this:
$ make clean
$ make CXX=/share/mercury/SunStudio12/12/SUNWspro/prod/bin/CC
Alternatively, if you want to use g++, then you will need to build
Xerces-C++ with this compiler. The Xerces-C++ project page has the
instructions:
http://xerces.apache.org/xerces-c/build-3.html
Boris
More information about the xsd-users
mailing list