You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Anshul Madan <ma...@gmail.com> on 2006/12/28 22:39:45 UTC

Xerces Problem with Cygwin

Hi All,

First Post, I couldnt find anything related.

While trying to access the Xerces library from a c++ program in
cygwin, I get the follwing messages on compilation.


/cygdrive/c/DOCUME~1/anshul/LOCALS~1/Temp/ccclcT8W.o:test.cpp:(.text+0x74):
undefined reference to `xercesc_2_5::XMLUni::fgXercescDefaultLocale'
/cygdrive/c/DOCUME~1/anshul/LOCALS~1/Temp/ccclcT8W.o:test.cpp:(.text+0x80):
undefined reference to `xercesc_2_5::XMLPlatformUtils::Initialize(char
const*, char
const*, xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)'
/cygdrive/c/DOCUME~1/anshul/LOCALS~1/Temp/ccclcT8W.o:test.cpp:(.text+0xd4):
undefined reference to `xercesc_2_5::XMLPlatformUtils::Terminate()'
collect2: ld returned 1 exit status

Any Idea as to what should I do about this?


Thanks,
Anshul

Re: Xerces Problem with Cygwin

Posted by David Bertoni <db...@apache.org>.
Anshul Madan wrote:
> Hi All,
> 
> First Post, I couldnt find anything related.
> 
> While trying to access the Xerces library from a c++ program in
> cygwin, I get the follwing messages on compilation.
> 
> 
> /cygdrive/c/DOCUME~1/anshul/LOCALS~1/Temp/ccclcT8W.o:test.cpp:(.text+0x74):
> undefined reference to `xercesc_2_5::XMLUni::fgXercescDefaultLocale'
> /cygdrive/c/DOCUME~1/anshul/LOCALS~1/Temp/ccclcT8W.o:test.cpp:(.text+0x80):
> undefined reference to `xercesc_2_5::XMLPlatformUtils::Initialize(char
> const*, char
> const*, xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)'
> /cygdrive/c/DOCUME~1/anshul/LOCALS~1/Temp/ccclcT8W.o:test.cpp:(.text+0xd4):
> undefined reference to `xercesc_2_5::XMLPlatformUtils::Terminate()'
> collect2: ld returned 1 exit status
> 
> Any Idea as to what should I do about this?
> 

Did you link your application with the Xerces-C library?

Dave