On Tue, 2003-12-23 at 09:09, Stephanie L Milchak wrote: > But the DOM_* class isn't what causes the linking error... when I > disable the namespace in xerces I have no errors. I still haven't > solved any problems. Are you certain you are linking to the correct xerces lib?
Here is the contents of "xerces_conf.hpp" that is included into my projectname.hpp file. This is pulled into all cpp files as the *first* include. Thus enabling me to make global changes, like dealing with the namespace issue "seamless" #ifndef FRAMEWORK_XERCES_CONF_HPP #define FRAMEWORK_XERCES_CONF_HPP #ifndef WIN32 #include "oaconfig.h" #else #define HAVE_XERCESC_NAMESPACE #endif #include <xercesc/util/XercesDefs.hpp> #if defined XERCES_HAS_CPP_NAMESPACE && defined HAVE_XERCESC_NAMESPACE #define USE_XERCESC using namespace xercesc; #define xerces_ns xercesc using namespace xercesc; #else #define USE_XERCESC #define xerces_ns #endif #endif With this, I can use any 2.x version of xerces-c Hope that helps Justin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
