Sorry I think I did a typo when writting the mail. Anyway if I use g++ -I/usr/include/xercesc testXML.c -lxerces-c -o testXML
I still have the same problem. ---------- Initial Header ----------- From : "Jeroen N. Witmond" <[EMAIL PROTECTED]> To : [EMAIL PROTECTED] Cc : Date : Thu, 15 Jan 2004 11:45:48 +0100 (CET) Subject : Re: Link problem on Red Hat 9 Please note that there must be a hyphen in "-lxerces-c". >> >Here is how I try to compile it >> >g++ -I/usr/include/xercesc testXML.C -lxerces-c -o testXML Here you do have the hyphen. >> >> >Here are the the errors when compiling (in fact this is the linking >> that >> >makes problems.) >> >%g++ -I/usr/include/xercesc testXML.c -lxercesc -o testXML But here there is no hyphen ('-') in "-lxercesc". >> >/tmp/ccmHwbd8.o(.text+0x14): In function `main': >> >: undefined reference to `xercesc_2_2::XMLUni::fgXercescDefaultLocale' >> >/tmp/ccmHwbd8.o(.text+0x19): In function `main': >> >: undefined reference to >> `xercesc_2_2::XMLPlatformUtils::Initialize(char >> >const*)' >> >/tmp/ccmHwbd8.o(.gcc_except_table+0x10): undefined reference to >> `typeinfo for >> >xercesc_2_2::XMLException' >> >collect2: ld returned 1 exit status Jeroen. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********** PROTEGEZ VOS E-MAILS !********** Avec Tiscali SuperMail, vos e-mails en toute sécurité ! Anti Spam personnalisable Anti Virus actualisé en permanence et de nombreux bonus... Pour en savoir plus, rendez-vous sur http://www.tiscali.fr/supermail/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]