[xsd-users] error trying to build examples [SOLVED]

Neeraj Vaidya neeraj.vaidya at yahoo.co.in
Fri Aug 23 12:24:45 EDT 2013


Hi Boris,

Thanks for your advice.
I was able to successfully build the libxerces-c.so using g++ as follows :
./configure CXX=g++ CC=g++ --disable-threads --disable-network CXXFLAGS=-O2 CFLAGS=-O2
cd src
make

[I guess I had not been applying the command line parameters for configure correctly]

Then I was able to build the XSD examples by doing the following :
Adding /usr/local/lib to the LD_LIBRARY_PATH. (Also, I needed to add the location of the Xerces headers and library built earlier to the make file command line)
Adding XSDFLAGS="-liconv" to the make file command line.

I am able to run the samples as well.

Thanks a lot for your suggestion.

I hope this helps other users trying to build on Solaris 10 for Sparc.

Regards,
Neeraj


________________________________
 From: Boris Kolpackov <boris at codesynthesis.com>
To: Neeraj Vaidya <neeraj.vaidya at yahoo.co.in> 
Cc: "xsd-users at codesynthesis.com" <xsd-users at codesynthesis.com> 
Sent: Wednesday, 21 August 2013 11:49 PM
Subject: Re: [xsd-users] error trying to build examples
 

Hi Neeraj,

Neeraj Vaidya <neeraj.vaidya at yahoo.co.in> writes:

> I built the xerces-3.1.1 source package using the g++ compiler, but
> still get the same error. What could be wrong ?

You either didn't build it with g++ (did you specify CXX=g++ in
configure command line?) or you are still linking to the old library
(try removing all copies of libxerces-c.so from your computer except
for the one you just built).


> But for my information, what is the difference between using 
> different compilers? I thought if the OS is the same, the built
> binaries should work on both platforms.

No, the C++ ABIs (i.e., how the symbols are named) as used by g++
and Sun CC are different.

Boris


More information about the xsd-users mailing list