> I think you might need > > g++ -I $XERCESCROOT/include test.c > > ..and you'll probably have to modify the #include statments in test.c > accordingly. > > Joanne >
Hi Joanne, As per your suggestion, I've used the compiling command, along with changing test.c (to remove include). I'm getting the compiler errors below. It looks like maybe a library issue... /tmp/ccSN4FhO.o(.text+0x17): In function `main': : undefined reference to `xercesc_2_6::XMLUni::fgXercescDefaultLocale' /tmp/ccSN4FhO.o(.text+0x1c): In function `main': : undefined reference to `xercesc_2_6::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_2_6::PanicHandler*, xercesc_2_6::MemoryManager*)' /tmp/ccSN4FhO.o(.text+0x58): In function `main': : undefined reference to `xercesc_2_6::XMLPlatformUtils::Terminate()' /tmp/ccSN4FhO.o(.gcc_except_table+0x10): undefined reference to `typeinfo for xercesc_2_6::XMLException' collect2: ld returned 1 exit status The test.c is a very basic: // Other include files, declarations, and non-Xerces-C++ // initializations. #include <xercesc/util/PlatformUtils.hpp> XERCES_CPP_NAMESPACE_USE int main() { try { XMLPlatformUtils::Initialize(); } catch (const XMLException& toCatch) { // Do your failure processing here return 1; } // Do your actual work with Xerces-C++ here. XMLPlatformUtils::Terminate(); // Other terminations and cleanup. return 0; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]