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 Sascha Konrad <ko...@cse.msu.edu> on 2003/10/14 16:44:38 UTC

Xerces 2.3 undefined references

Hi,

I am a xerces novice and I am trying to compile an empty application 
(just the xerces 2.3 headers for a XercesDOMParser included) under 
cygwin with gcc 3.3, but i always get the following undefined references:

$ g++ testparser.cpp
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_313XMLAttDefListD1Ev+0x22):test
parser.cpp: undefined reference to `xercesc_2_3::XMemory::operator 
delete(void*)
'
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_313XMLAttDefListD0Ev+0x22):test
parser.cpp: undefined reference to `xercesc_2_3::XMemory::operator 
delete(void*)
'
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_313DTDEntityDeclD1Ev+0x16):test
parser.cpp: undefined reference to 
`xercesc_2_3::XMLEntityDecl::~XMLEntityDecl [
not-in-charge]()'
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_313DTDEntityDeclD1Ev+0x2d):test
parser.cpp: undefined reference to `xercesc_2_3::XMemory::operator 
delete(void*)
'
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_313DTDEntityDeclD0Ev+0x16):test
parser.cpp: undefined reference to 
`xercesc_2_3::XMLEntityDecl::~XMLEntityDecl [
not-in-charge]()'
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_313DTDEntityDeclD0Ev+0x2d):test
parser.cpp: undefined reference to `xercesc_2_3::XMemory::operator 
delete(void*)
'
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_311HandlerBase10fatalErrorERKNS
_17SAXParseExceptionE+0x20):testparser.cpp: undefined reference to 
`xercesc_2_3:
:SAXParseException::SAXParseException[in-charge](xercesc_2_3::SAXParseException
const&)'
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_311HandlerBase10fatalErrorERKNS
_17SAXParseExceptionE+0x28):testparser.cpp: undefined reference to 
`xercesc_2_3:
:SAXParseException::~SAXParseException [in-charge]()'
collect2: ld returned 1 exit status


Does anybody know this problem and how to fix it? Help is greatly 
appreciated.

Thanks,
Sascha Konrad


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Xerces 2.3 undefined references

Posted by jiang lei <ji...@8107.co.jp>.
----- Original Message -----
From: "Sascha Konrad" <ko...@cse.msu.edu>
To: <xe...@xml.apache.org>
Sent: Tuesday, October 14, 2003 11:44 PM
Subject: Xerces 2.3 undefined references


> Hi,
>
> I am a xerces novice and I am trying to compile an empty application
> (just the xerces 2.3 headers for a XercesDOMParser included) under
> cygwin with gcc 3.3, but i always get the following undefined references:
>
> $ g++ testparser.cpp
>
/cygdrive/d/Temp/cc5wbBgp.o(.text$_ZN11xercesc_2_313XMLAttDefListD1Ev+0x22):
test
> parser.cpp: undefined reference to `xercesc_2_3::XMemory::operator
> delete(void*)
> '
> ......
>
> Does anybody know this problem and how to fix it? Help is greatly
> appreciated.
>
> Thanks,
> Sascha Konrad
>

Hi Sascha,

As I remember, the 2_3_0 release build has some problem with the
Makefiles/Project files.

I was told by Gareth to check out a CVS version 2  months ago and it worked.
The date is  July 23.
And now it seems there are still some problems with the Makefiles/project
files in the repository. So I think you have 3 choices.

a) fix your current Makefile by yourself

b) check out the July 23 version from CVS

c) check out the current version and fix the Makefiles by yourself

regards

Lei



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org