You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Horacio de Oro <ho...@trimaxcba.com> on 2004/05/28 16:49:49 UTC

Problems linking application in cygwin

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.o

red/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