[xsd-users] Undefined Symbol
Boris Kolpackov
boris at codesynthesis.com
Wed Jun 4 04:27:31 EDT 2008
Hi Keith,
Wire, Keith C <keith.c.wire at lmco.com> writes:
> When I try to compile the generated code I get an undefined
> symbol error "xerces_2_8::XMLPlatformUtils::Initialize(....) hello.o"
>
> I'm running
>
> > CC -I(path to libxsd)/libxsd -I$XERCESCROOT/include -c driver.cxx
> hello.cxx
>
> > CC -o driver driver.o hello.o -L$XERCESCROOT/lib
>
You forgot to add -lxerces-c to the link line:
CC -o driver driver.o hello.o -L$XERCESCROOT/lib -lxerces-c
You can also use the makefiles that come with the hello and other
examples:
$ cd ../examples/cxx/tree/hello
$ gmake CPPFLAGS=-I$XERCESCROOT/include LDFLAGS=-L$XERCESCROOT/lib
Boris
More information about the xsd-users
mailing list