Your Xerces was compiled with namespaces. Insert the XERCES_CPP_NAMESPACE_USE macro in your implementation files.
-----Original Message----- From: Swaroop [mailto:[EMAIL PROTECTED] Sent: Sunday, May 29, 2005 4:32 AM To: [email protected] Subject: Unable to use xerces on linux hi, i got the xerces latest sources and was albe to compile it. the samples also get compiled and executed properly. but when i try to use the xerces-API in my program i come across compilation issues. Platform : RH9 linux --------------------------- here is a my source file --------------------------- #include<xercesc/util/PlatfromUtils.hpp> int main(){ XMLPlatformUtils::Initialize(); return 1; } ---------------------------------------- here is the output of the compilation ---------------------------------------- g++ -w -O -DLINUX -D_REENTRANT -DAPP_NO_THREADS -DXML_USE_NO_THREADS O2 -DNDEBUG -fpic -felide-constructors -pipe -c -I. -I/root/xerces-c-src_2_6_0/include Main.cpp Main.cpp: In function `int main()': Main.cpp:7: `XMLPlatformUtils' undeclared (first use this function) Main.cpp:7: (Each undeclared identifier is reported only once for each function it appears in.) Main.cpp:7: parse error before `::' token any pointers as to why this is happening?? thanks in advance ~Swaroop --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
