At 15.43 28/11/2006 +0530, P J P wrote:

  Hey, hi Alberto :)

On Tue, 28 Nov 2006, Alberto Massari wrote:
Hi,
version... however, apply this patch to the source http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/RefArrayOf.hpp?r1=175709&r2=175929&diff_format=h

Yes that worked! Thank you Albert; That was really kind & very quick of you!!


version 2.5 is pretty old, you would be better off using the latest 2.7

Yes, I actually tried linking with xerces-c-2.7.0 before trying xerces-c-2.5.0, but got ...

You are trying to link against 2.7 but after picking up the headers from version 2.5 (see the xercesc_2_5 namespace in the errors). You cannot mix the include and lib directories!

Alberto

^^^^^
dummy.o: In function `xercesc_2_5::HandlerBase::fatalError(xercesc_2_5::SAXParseException const&)': ../lib/xercesc/sax/HandlerBase.hpp:485: undefined reference to `xercesc_2_5::SAXParseException::SAXParseException(xercesc_2_5::SAXParseException const&)' ../lib/xercesc/sax/HandlerBase.hpp:485: undefined reference to `xercesc_2_5::SAXParseException::~SAXParseException()' ../lib/xercesc/sax/HandlerBase.hpp:485: undefined reference to `typeinfo for xercesc_2_5::SAXParseException'
dummy.o: In function `~DTDEntityDecl':
../lib/xercesc/validators/DTD/DTDEntityDecl.hpp:233: undefined reference to `xercesc_2_5::XMLEntityDecl::~XMLEntityDecl()' ../lib/xercesc/validators/DTD/DTDEntityDecl.hpp:233: undefined reference to `xercesc_2_5::XMemory::operator delete(void*)' ../lib/xercesc/validators/DTD/DTDEntityDecl.hpp:233: undefined reference to `xercesc_2_5::XMLEntityDecl::~XMLEntityDecl()'
dummy.o: In function `~XMLAttDefList':
../lib/xercesc/framework/XMLAttDefList.hpp:250: undefined reference to `xercesc_2_5::XMemory::operator delete(void*)' dummy.o:(.rodata._ZTVN11xercesc_2_513DTDEntityDeclE[vtable for xercesc_2_5::DTDEntityDecl]+0x10): undefined reference to `xercesc_2_5::DTDEntityDecl::isSerializable() const' dummy.o:(.rodata._ZTVN11xercesc_2_513DTDEntityDeclE[vtable for xercesc_2_5::DTDEntityDecl]+0x14): undefined reference to `xercesc_2_5::DTDEntityDecl::serialize(xercesc_2_5::XSerializeEngine&)' dummy.o:(.rodata._ZTVN11xercesc_2_513DTDEntityDeclE[vtable for xercesc_2_5::DTDEntityDecl]+0x18): undefined reference to `xercesc_2_5::DTDEntityDecl::getProtoType() const' dummy.o:(.rodata._ZTVN11xercesc_2_513XMLAttDefListE[vtable for xercesc_2_5::XMLAttDefList]+0x10): undefined reference to `xercesc_2_5::XMLAttDefList::isSerializable() const' dummy.o:(.rodata._ZTVN11xercesc_2_513XMLAttDefListE[vtable for xercesc_2_5::XMLAttDefList]+0x14): undefined reference to `xercesc_2_5::XMLAttDefList::serialize(xercesc_2_5::XSerializeEngine&)' dummy.o:(.rodata._ZTVN11xercesc_2_513XMLAttDefListE[vtable for xercesc_2_5::XMLAttDefList]+0x18): undefined reference to `xercesc_2_5::XMLAttDefList::getProtoType() const' dummy.o:(.rodata._ZTIN11xercesc_2_513DTDEntityDeclE[typeinfo for xercesc_2_5::DTDEntityDecl]+0x8): undefined reference to `typeinfo for xercesc_2_5::XMLEntityDecl' libdummy.so: undefined reference to `xercesc_2_5::XMLUni::fgDOMWRTDiscardDefaultContent' libdummy.so: undefined reference to `xercesc_2_5::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)'
libdummy.so: undefined reference to `typeinfo for xercesc_2_5::XMLException'
libdummy.so: undefined reference to `xercesc_2_5::XMLUni::fgDOMWRTFormatPrettyPrint' libdummy.so: undefined reference to `xercesc_2_5::XMLPlatformUtils::fgMemoryManager' libdummy.so: undefined reference to `xercesc_2_5::XMLString::transcode(char const*, unsigned short*, unsigned int, xercesc_2_5::MemoryManager*)'
libdummy.so: undefined reference to `xercesc_2_5::XMLString::release(char**)'
libdummy.so: undefined reference to `xercesc_2_5::DOMImplementationRegistry::getDOMImplementation(unsigned short const*)' libdummy.so: undefined reference to `xercesc_2_5::XMLString::transcode(unsigned short const*)' libdummy.so: undefined reference to `xercesc_2_5::XMLString::release(unsigned short**)' libdummy.so: undefined reference to `xercesc_2_5::XMLString::transcode(char const*)' libdummy.so: undefined reference to `xercesc_2_5::XMLUni::fgXercescDefaultLocale'
libdummy.so: undefined reference to `typeinfo for xercesc_2_5::DOMException'
collect2: ld returned 1 exit status
make[2]: *** [nag] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
vvvvv

... and couldn't figureout the problem.


Thanks again! Thank you so much!! :)
--
regards
   -P J P
http://www.cdacbangalore.in/~prasad
PS: Please don't send me html/attachment/Fwd mails

Reply via email to