Programming Guide - initialization sample is not compileable ------------------------------------------------------------
Key: XERCESC-1352 URL: http://issues.apache.org/jira/browse/XERCESC-1352 Project: Xerces-C++ Type: Bug Reporter: Christian Nolte The example for initializing the Xerces-API is not compileable using VC7 Compiler nor GCC 3.4.2, tested under Win32. The example should look like this: ---------------------- #include <xercesc/util/PlatformUtils.hpp> XERCES_CPP_NAMESPACE_USE int main(int argc, char *argv[]) { // Other include files, declarations, and non-Xerces-C++ initializations. try { XMLPlatformUtils::Initialize(); } catch (const XMLException& toCatch) { // Do your failure processing here return 1; } // Do your actual work with Xerces-C++ here. XMLPlatformUtils::Terminate(); return 0; } ---------------- Note that the include is not within the main-function. Beside that, the XERCES_CPP_NAMESPACE_USE must now be used because of namespace support which is compiled in per default. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]