Hi!
I was created a little application that parses a small xml document on Linux. It's working well now.
Now I want to compile it on Cygwin, but the version of xerces that comes with cygwin give me errors while linking it. So I download the sources of Xerces 2.5.0, compile it and use it to compile the app and link the program, but it give me the same errors: I couldn't link it.
What's the problem? What can I do to solve this?
Some errors here, full errors in attached file:
g++ -I. -I/home/horacio/xerces-c-2.5.0/include -Wall -ggdb \
-I/home/horacio/xerces-c-2.5.0/include \
-L/home/horacio/xerces-c-2.5.0/lib \
-lxerces-c \
-o MainServer xxxxx.ored/Request.o(.text+0x6f8): In function `_ZN7Request8getQueryEv':
undefined reference to \
`xercesc_2_5::XMLUni::fgXercescDefaultLocale'undefined reference to \
`xercesc_2_5::XMLPlatformUtils::Initialize(char const*, \
charconst*, xercesc_2_5::PanicHandler*, \
xercesc_2_5::MemoryManager*)'Thanks in advance!
Horacio de Oro
[EMAIL PROTECTED] ~/tecnodb/trunk $ make MainServer g++ -I. -I/home/horacio/xerces-c-2.5.0/include -Wall -ggdb -I. -I/home/horacio/xerces-c-2.5.0/include -L/home/horacio/xerces-c-2.5.0/lib -lxerces-c -o MainServer objeto.o lcomandos.o funcioneslibres.o database.o tabla.o compilador.o ejecutor.o structs.o lexico.o indicedigital/structs.o indicedigital/indicedigital.o red/Request.o red/socket/Socket.o red/socket/SocketException.o red/server/ServerSocket.o MainServer.o red/Request.o(.text+0x6f8): In function `_ZN7Request8getQueryEv': /home/horacio/tecnodb/trunk/red/Request.cpp:104: undefined reference to `xercesc_2_5::XMLUni::fgXercescDefaultLocale' red/Request.o(.text+0x707):/home/horacio/tecnodb/trunk/red/Request.cpp:104: undefined reference to `xercesc_2_5::XMLPlatformUtils::Initialize(char const*, charconst*, xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)' red/Request.o(.text+0x75b):/home/horacio/tecnodb/trunk/red/Request.cpp:108: undefined reference to `xercesc_2_5::XMLString::transcode(unsigned short const*)' red/Request.o(.text+0x79e):/home/horacio/tecnodb/trunk/red/Request.cpp:110: undefined reference to `xercesc_2_5::XMLString::release(char**)' red/Request.o(.text+0x811):/home/horacio/tecnodb/trunk/red/Request.cpp:115: undefined reference to `xercesc_2_5::XMemory::operator new(unsigned)' red/Request.o(.text+0x82b):/home/horacio/tecnodb/trunk/red/Request.cpp:115: undefined reference to `xercesc_2_5::XMLPlatformUtils::fgMemoryManager' red/Request.o(.text+0x84f):/home/horacio/tecnodb/trunk/red/Request.cpp:115: undefined reference to `xercesc_2_5::XercesDOMParser::XercesDOMParser[in-charge](xercesc_2_5::XMLValidator*, xercesc_2_5::MemoryManager*, xercesc_2_5::XMLGrammarPool*)' red/Request.o(.text+0x88e):/home/horacio/tecnodb/trunk/red/Request.cpp:115: undefined reference to `xercesc_2_5::XMemory::operator delete(void*)' red/Request.o(.text+0x931):/home/horacio/tecnodb/trunk/red/Request.cpp:120: undefined reference to `xercesc_2_5::XercesDOMParser::setErrorHandler(xercesc_2_5::ErrorHandler*)' red/Request.o(.text+0x943):/home/horacio/tecnodb/trunk/red/Request.cpp:139: undefined reference to `xercesc_2_5::XMemory::operator new(unsigned)' red/Request.o(.text+0x962):/home/horacio/tecnodb/trunk/red/Request.cpp:139: undefined reference to `xercesc_2_5::XMLPlatformUtils::fgMemoryManager' red/Request.o(.text+0x999):/home/horacio/tecnodb/trunk/red/Request.cpp:139: undefined reference to `xercesc_2_5::MemBufInputSource::MemBufInputSource[in-charge](unsigned char const*, unsigned, char const*, bool, xercesc_2_5::MemoryManager*)' red/Request.o(.text+0x9d8):/home/horacio/tecnodb/trunk/red/Request.cpp:139: undefined reference to `xercesc_2_5::XMemory::operator delete(void*)' red/Request.o(.text+0xa18):/home/horacio/tecnodb/trunk/red/Request.cpp:142: undefined reference to `xercesc_2_5::AbstractDOMParser::parse(xercesc_2_5::InputSource const&)' red/Request.o(.text+0xa66):/home/horacio/tecnodb/trunk/red/Request.cpp:145: undefined reference to `xercesc_2_5::XMLString::transcode(unsigned short const*)' red/Request.o(.text+0xaa9):/home/horacio/tecnodb/trunk/red/Request.cpp:147: undefined reference to `xercesc_2_5::XMLString::release(char**)' red/Request.o(.text+0xb2b):/home/horacio/tecnodb/trunk/red/Request.cpp:151: undefined reference to `xercesc_2_5::XMLString::transcode(unsigned short const*)' red/Request.o(.text+0xb6e):/home/horacio/tecnodb/trunk/red/Request.cpp:153: undefined reference to `xercesc_2_5::XMLString::release(char**)' red/Request.o(.text+0xde7):/home/horacio/tecnodb/trunk/red/Request.cpp:187: undefined reference to `xercesc_2_5::AbstractDOMParser::getDocument()' red/Request.o(.text+0xdf2):/home/horacio/tecnodb/trunk/red/Request.cpp:188: undefined reference to `xercesc_2_5::XMLPlatformUtils::fgMemoryManager' red/Request.o(.text+0xe14):/home/horacio/tecnodb/trunk/red/Request.cpp:188: undefined reference to `xercesc_2_5::XMLString::transcode(char const*, unsigned short*, unsigned, xercesc_2_5::MemoryManager*)' red/Request.o(.text+0x1039):/home/horacio/tecnodb/trunk/red/Request.cpp:240: undefined reference to `xercesc_2_5::XMLString::transcode(unsigned short const*)' red/Request.o(.text+0x10d8):/home/horacio/tecnodb/trunk/red/Request.cpp:260: undefined reference to `xercesc_2_5::XMLString::release(char**)' red/Request.o(.text+0x1164):/home/horacio/tecnodb/trunk/red/Request.cpp:276: undefined reference to `xercesc_2_5::XMLPlatformUtils::Terminate()' red/Request.o(.rdata$_ZTVN11xercesc_2_513DTDEntityDeclE+0x10): In function `_ZN11xercesc_2_511HandlerBase13startDocumentEv': /home/horacio/xerces-c-2.5.0/include/xercesc/sax/HandlerBase.hpp: undefined reference to `xercesc_2_5::DTDEntityDecl::isSerializable() const' red/Request.o(.rdata$_ZTVN11xercesc_2_513DTDEntityDeclE+0x14):/home/horacio/xerces-c-2.5.0/include/xercesc/sax/HandlerBase.hpp: undefined reference to `xercesc_2_5::DTDEntityDecl::serialize(xercesc_2_5::XSerializeEngine&)' red/Request.o(.rdata$_ZTVN11xercesc_2_513DTDEntityDeclE+0x18): In function `_ZN7RequestC1Ev': /home/horacio/tecnodb/trunk/red/Request.cpp:27: undefined reference to `xercesc_2_5::DTDEntityDecl::getProtoType() const' red/Request.o(.rdata$_ZTVN11xercesc_2_513XMLAttDefListE+0x10): In function `_ZN11xercesc_2_511HandlerBase13startDocumentEv': /home/horacio/xerces-c-2.5.0/include/xercesc/sax/HandlerBase.hpp: undefined reference to `xercesc_2_5::XMLAttDefList::isSerializable() const' red/Request.o(.rdata$_ZTVN11xercesc_2_513XMLAttDefListE+0x14):/home/horacio/xerces-c-2.5.0/include/xercesc/sax/HandlerBase.hpp: undefined reference to `xercesc_2_5::XMLAttDefList::serialize(xercesc_2_5::XSerializeEngine&)' red/Request.o(.rdata$_ZTVN11xercesc_2_513XMLAttDefListE+0x18): In function `_ZN7RequestC1Ev': /home/horacio/tecnodb/trunk/red/Request.cpp:27: undefined reference to `xercesc_2_5::XMLAttDefList::getProtoType() const' red/Request.o(.text$_ZN11xercesc_2_513XMLAttDefListD1Ev+0x2d):/home/horacio/tecnodb/trunk/red/Request.cpp:29: undefined reference to `xercesc_2_5::XMemory::operator delete(void*)' red/Request.o(.text$_ZN11xercesc_2_513XMLAttDefListD0Ev+0x2d):/home/horacio/tecnodb/trunk/red/Request.cpp:29: undefined reference to `xercesc_2_5::XMemory::operator delete(void*)' red/Request.o(.text$_ZN11xercesc_2_513DTDEntityDeclD1Ev+0x16): In function `_ZN11xercesc_2_511HandlerBase13startDocumentEv': /home/horacio/xerces-c-2.5.0/include/xercesc/sax/HandlerBase.hpp: undefined reference to `xercesc_2_5::XMLEntityDecl::~XMLEntityDecl [not-in-charge]()' red/Request.o(.text$_ZN11xercesc_2_513DTDEntityDeclD1Ev+0x2d): In function `_ZN7RequestC1Ev': /home/horacio/tecnodb/trunk/red/Request.cpp:29: undefined reference to `xercesc_2_5::XMemory::operator delete(void*)' red/Request.o(.text$_ZN11xercesc_2_513DTDEntityDeclD0Ev+0x16): In function `_ZN11xercesc_2_511HandlerBase13startDocumentEv': /home/horacio/xerces-c-2.5.0/include/xercesc/sax/HandlerBase.hpp: undefined reference to `xercesc_2_5::XMLEntityDecl::~XMLEntityDecl [not-in-charge]()' red/Request.o(.text$_ZN11xercesc_2_513DTDEntityDeclD0Ev+0x2d): In function `_ZN7RequestC1Ev': /home/horacio/tecnodb/trunk/red/Request.cpp:29: undefined reference to `xercesc_2_5::XMemory::operator delete(void*)' red/Request.o(.text$_ZN11xercesc_2_511HandlerBase10fatalErrorERKNS_17SAXParseExceptionE+0x20):/home/horacio/tecnodb/trunk/red/Request.cpp:28: undefined reference to `xercesc_2_5::SAXParseException::SAXParseException[in-charge](xercesc_2_5::SAXParseException const&)' red/Request.o(.text$_ZN11xercesc_2_511HandlerBase10fatalErrorERKNS_17SAXParseExceptionE+0x28):/home/horacio/tecnodb/trunk/red/Request.cpp:29: undefined reference to `xercesc_2_5::SAXParseException::~SAXParseException [in-charge]()' collect2: ld returned 1 exit status make: *** [MainServer] Error 1
[EMAIL PROTECTED] ~/tecnodb/trunk $
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
