[xsd-users] Generated cxx-tree files compile, but raise errors during linking

Lyndon mail.lyndon at gmail.com
Wed Feb 1 16:56:26 EST 2012


Hello,

I'm having the problems using xsd 3.3.0 cxx-tree generate code when I try
to compile my project.  I am using it with xerces 2.7.0, gcc 4.1.2, and
Eclipse CDT.  The generated code compiles, but raise all sorts of errors
during the linking stage (see partial output below).

This is a similar error as submitted by Andrey Yanukovich on Thu Sep 15
05:16:50 EDT 2005, but the reply doesn't seem to be existent.  Do you have
any ideas why I'm getting these errors?  Thanks in advance!

Lyndon

*./ABCSource/ABCconfig.o: In function
`ABCconfigNamespace::config::Data_Path() const':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/char_traits.h:282:
multiple defconfigtion of `ABCconfigNamespace::config::Data_Path() const'
./ABCSource/ABCconfig.o:/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/char_traits.h:282:
first defined here
./ABCSource/ABCconfig.o: In function
`ABCconfigNamespace::config::State_Path() const':
/usr/include/xercesc/sax/InputSource.hpp:333: multiple defconfigtion of
`ABCconfigNamespace::config::State_Path() const'
./ABCSource/ABCconfig.o:/usr/include/xercesc/sax/InputSource.hpp:333: first
defined here
./ABCSource/ABCconfig.o: In function
`ABCconfigNamespace::config::Staged_Path() const':
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/ios_base.h:595:
multiple defconfigtion of `ABCconfigNamespace::config::Staged_Path() const'
./ABCSource/ABCconfig.o:/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/ios_base.h:595:
first defined here*


More information about the xsd-users mailing list