|
Thanks for the quick response. First, for my app using the prebuilt win32's: I have Xerces 2.6 built into the project and working fine. I tried writing a basic function based off of "Basic usage pattern with the XalanTransformer C++ API" at http://xml.apache.org/xalan-c/usagepatterns.html ------------------------------------- class consoleTestXalanTransform : public CCliCallback { public: virtual void doCallback(int argc, CMLString* lpStrArgs) { XALAN_USING_XERCES(XMLPlatformUtils) XALAN_USING_XALAN(XalanTransformer) XALAN_USING_XALAN(XSLTInputSource) XALAN_USING_XALAN(XSLTResultTarget) XMLPlatformUtils::Initialize(); XalanTransformer::initialize(); XalanTransformer theXalanTransformer; XSLTInputSource xmlIn("..\\main\system\test1.xml"); XSLTInputSource xslIn("..\\main\system\test2.xsl"); XSLTResultTarget xmlOut("..\\main\system\test-output.html"); int theResult = theXalanTransformer.transform(xmlIn,xslIn,xmlOut); XalanTransformer::terminate(); XMLPlatformUtils::Terminate(); } }; ------------------------------------- I made sure to link to Xalan-C_1.lib, xerces-c_2.lib and xerces-depdom_2.lib. Those are the only libs I could find. The file containing this function compiled fine. However, when I tried building the solution using VC7.1 and WinXP I got the aforementioned linker errors. Next, trying to build Xalan 1.9 using VC7.1 in WinXP: I made sure to set XERCESCROOT correctly. Then I simply opened up the solution and built. 8 projects failed including extensions, dom2dom, compare, inputsource, testxslt, params, memory and perf. Here are some errors from the extensions project ------------------------------------- ------ Build started: Project: extensions, Configuration: Release Win32 ------ Compiling... extensions.cpp extensions.cpp(110) : error C2660: 'xalanc_1_9::XalanFileUtility::generateFileName' : function does not take 2 arguments extensions.cpp(112) : error C2676: binary '+' : 'xalanc_1_9::XalanDOMString' does not define this operator or a conversion to a type acceptable to the predefined operator extensions.cpp(113) : error C2660: 'xalanc_1_9::XalanFileUtility::generateFileName' : function does not take 2 arguments extensions.cpp(117) : error C2676: binary '+' : 'xalanc_1_9::XalanDOMString' does not define this operator or a conversion to a type acceptable to the predefined operator extensions.cpp(119) : error C2676: binary '+' : 'xalanc_1_9::XalanDOMString' does not define this operator or a conversion to a type acceptable to the predefined operator extensions.cpp(145) : error C2676: binary '+' : 'xalanc_1_9::XalanDOMString' does not define this operator or a conversion to a type acceptable to the predefined operator ------------------------------------- Hope this helps shed some more light. Is there something blatant that I'm missing? June Ng wrote:
|
