[xsd-users] problem with comiping expat cxx-parser
Dmitry Kekelidze
dkekel at gmail.com
Fri Nov 6 10:48:37 EST 2009
Good day!
I have such problem. I've generated xsd-code with expat parser (with option
--xml-parser expat) and when I'm compiling it, I've got 4 errors:
g++ -W -Wall -O3 -o sample-description-driver sample-description-driver.o
hepml-pimpl.o hepml-pskel.o lcg-hepml-pimpl.o lcg-hepml-pskel.o lha1-pimpl.o
lha1-pskel.o sample-description-pimpl.o sample-description-pskel.o
types-pimpl.o types-pskel.o -lexpat
sample-description-driver.o(.gnu.linkonce.t._ZN3xsd3cxx6parser5expat8documentIcE26translate_schema_exceptionERKNS1_16schema_exceptionIcEE+0x75):
In function
`xsd::cxx::parser::expat::document<char>::translate_schema_exception(xsd::cxx::parser::schema_exception<char>
const&)':
: undefined reference to `XML_StopParser'
sample-description-driver.o(.gnu.linkonce.t._ZN3xsd3cxx6parser5expat8documentIcE11characters_EPKcj+0x16):
In function `xsd::cxx::parser::expat::document<char>::characters_(char
const*, unsigned int)':
: undefined reference to `XML_GetParsingStatus'
sample-description-driver.o(.gnu.linkonce.t._ZN3xsd3cxx6parser5expat8documentIcE12end_element_EPKc+0x1d):
In function `xsd::cxx::parser::expat::document<char>::end_element_(char
const*)':
: undefined reference to `XML_GetParsingStatus'
sample-description-driver.o(.gnu.linkonce.t._ZN3xsd3cxx6parser5expat8documentIcE14start_element_EPKcPS6_+0x26):
In function `xsd::cxx::parser::expat::document<char>::start_element_(char
const*, char const**)':
: undefined reference to `XML_GetParsingStatus'
collect2: ld returned 1 exit status
make: *** [sample-description-driver] Error 1
I'm using expat library 2.0.1. I've looked in elements.txx and found nothing
wrong for XML_GetParsingStatus and XML_StopParser reference. If I comment
those lines, the compilation passes without errors, but when I start the
driver file with xml file as parametr, I got nothing... I've tested
--xml-parser expat option also with hello example and got the same
problems...
Hope for Your help!
More information about the xsd-users
mailing list