[xsd-users] Undefined reference error

Boris Kolpackov boris at codesynthesis.com
Thu Dec 11 09:40:42 EST 2008


Hi David,

David White <dawhite32 at gmail.com> writes:

> thanks for your reply.  Unfortunately, rebuilding xerces as you suggest
> below did not solve the problem.  Rather, I now have 12 undefined
> references.

Ok, I just tried to build everything from scratch and everything
works fine. I am using a fairly recent MinGW+MSYS (g++ 3.4.5 r3).
Here is what I did in the MSYS console:

$ tar xfz xerces-c-3.0.0.tar.gz
$ cd xerces-c-3.0.0
$ ./configure --disable-shared LDFLAGS=-no-undefined CFLAGS=-O0 CXXFLAGS=-O0
$ make
$ cd ..
$ unzip -q xsd-3.2.0-i686-windows.zip
$ cd xsd-3.2.0-i686-windows/examples/cxx/parser/library
$ make CPPFLAGS=-I../../../../../xerces-c-3.0.0/src \
LDFLAGS=-L../../../../../xerces-c-3.0.0/src/.libs

The example compiles, links and runs fine. Can you try this exact build
commands and see if it works for you?

Boris




More information about the xsd-users mailing list