[xsd-users] Re: Build Question

Boris Kolpackov boris at codesynthesis.com
Mon Oct 9 16:22:26 EDT 2006


Hi Richard,

Surwilo, Richard <richard.surwilo at eds.com> writes:

> Thanks for the timely reply. Point taken re using the mailing list in
> the future.

You forgot to CC your reply though ;-)


> I did not build Xerces, I downloaded this pre-built library for Solaris:
>
> xerces-c_2_7_0-solaris_28-cc_62.tar.gz

This one is built using Sun CC (presumably 6.2).


> I am using gcc version 3.4.2 to compile the example:
>
> g++ -W -Wall -I../../../../../xerces/include -L../../../../../xerces/lib
> -o driver driver.o hello.o -lxerces-c

You cannot mix C++ libraries build with Sun CC and g++ - they are using
different ABIs. That is why you are getting unresolved symbols. You will
need to build Xerces-C++ with g++ (or find a pre-built with this compiler
version).

It is quite easy to build Xerces-C++ yourself. Just download and unpack
the latest version (2.7.0) then do:


$ cd xerces-c-src_2_7_0
$ export XERCESCROOT=`pwd`
$ cd src/xercesc
$ ./runConfigure -p solaris -c gcc -x g++
$ gmake

The includes will be in xerces-c-src_2_7_0/include and the library will
be in xerces-c-src_2_7_0/lib.

hth,
-boris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061009/5f10b156/attachment.pgp


More information about the xsd-users mailing list