Hans,
I am using VC 2005 Team Edition. When I tried to build Localization, following nmake errors were seen, LINK : fatal error LNK1181: cannot open input file 'xerces-c_2.lib' NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\link.exe"' : return code '0x49d' Stop. NMAKE : fatal error U1077: 'if' : return code '0x2' Stop. Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions" I have checked Project Settings: Linker -> Input to be xerces-c_2.lib. Still it is giving error. When I build AllInOne, type conversion errors like following are seen because of 'typesafeness' of VC 2005. error C2664: 'void xalanc_1_10::AttributesImpl::addAttribute(const XMLCh *,const XMLCh *,const XMLCh *)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *' I have followed steps given for Xalan. For Xerces , I have not used your steps. Thanks, Awadhoot ________________________________ From: Hans Smit [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 11:56 PM To: [email protected] Subject: RE: Xerces 2.7 - Xalan 1.10 in VC 2005 query Hi Awadhoot, Your short response is not of much help. Could you please provide some details, i.e. build output logs (not the 650 errors please). Also, did you follow the steps exactly? I had followed my own steps on a different computer and successfully compiled it in one go. If any of the steps are unclear, please let me know. I will update it accordingly. Hans Smit -----Original Message----- From: Aphale, Awadhoot [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 12:57 PM To: [email protected] Subject: RE: Xerces 2.7 - Xalan 1.10 in VC 2005 query Hi Hans, Thanks for reply. I tried your solution, but still it gives me nmake errors & some type conversion errors in release mode. Can you suggest something here? Thanks, Awadhoot ________________________________ From: Hans Smit [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 12:13 AM To: [email protected] Subject: RE: Xerces 2.7 - Xalan 1.10 in VC 2005 query Please refer to the following post from 2 weeks ago: http://mail-archives.apache.org/mod_mbox/xml-xalan-c-users/200709.mbox/% [EMAIL PROTECTED] "building xalanc using msvc++ 2005 express edition" This should get you where you need to go. Hans Smit -----Original Message----- From: Aphale, Awadhoot [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 4:41 PM To: [email protected] Subject: Xerces 2.7 - Xalan 1.10 in VC 2005 query Hi, I am trying to use Xerces 2.7 & Xalan 1.10 in VC 2005. When I tried to build, I got errors like following, C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/DOMSupport/DOMServices.h pp(571) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/XPath/XObject.hpp(339) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/XPath/XObject.hpp(343) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast XMLGEN.cpp C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/DOMSupport/DOMServices.h pp(571) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/XPath/XObject.hpp(339) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/XPath/XObject.hpp(343) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast XmlDoc.cpp C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/DOMSupport/DOMServices.h pp(571) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/XPath/XObject.hpp(339) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/XPath/XObject.hpp(343) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast XMLContent.cpp C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/DOMSupport/DOMServices.h pp(571) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/XPath/XObject.hpp(339) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\xalan-c-1.10.0-WithOutICU\win\include\xalanc/XPath/XObject.hpp(343) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Then. I downloaded Xerces 2.7 from Apache & compiled in VC 2005. But when I tried to compile Xalan 1.10 in VC 2005, it gave another set of errors like following, XalanFileUtility.cpp c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src (Before porting from 2k3 to 2k5)\xml-xalan\c\src\xalanc/PlatformSupport/DirectoryEnumerator.hpp(84) : error C2440: 'return' : cannot convert from 'const wchar_t [260]' to 'const xalanc_1_10::XalanDOMChar *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src (Before porting from 2k3 to 2k5)\xml-xalan\c\src\xalanc/DOMSupport/DOMServices.hpp(571) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src (Before porting from 2k3 to 2k5)\xml-xalan\c\src\xalanc/XPath/XObject.hpp(339) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src (Before porting from 2k3 to 2k5)\xml-xalan\c\src\xalanc/XPath/XObject.hpp(343) : error C2664: 'void (const XMLCh *const ,const unsigned int)' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\My Documents\CA-ARDS 2.3\XML Exchange\Libraries\Xalan-C_current-src (Before porting from 2k3 to 2k5)\xml-xalan\c\src\xalanc/PlatformSupport/URISupport.hpp(110) : error C2664: 'void xercesc_2_7::XMLURL::setURL(const XMLCh *const )' : cannot convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to 'const XMLCh *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\..\..\..\src\xalanc\Harness\XalanFileUtility.cpp(443) : error C2664: 'xalanc_1_10::XalanDOMString::XalanDOMString(const char *,xalanc_1_10::MemoryManagerType &,xalanc_1_10::XalanDOMString::size_type)' : cannot convert parameter 1 from 'const wchar_t [6]' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\..\..\..\src\xalanc\Harness\XalanFileUtility.cpp(489) : error C2664: 'xalanc_1_10::XalanDOMString::XalanDOMString(const char *,xalanc_1_10::MemoryManagerType &,xalanc_1_10::XalanDOMString::size_type)' : cannot convert parameter 1 from 'const wchar_t [2]' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast There are more then 650 errors. I am not getting how to overcome this problem. Any help would be appreciable. Thanks, Awadhoot No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date: 10/3/2007 8:22 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date: 10/3/2007 8:22 PM No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.14.1/1050 - Release Date: 10/4/2007 5:03 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.14.1/1050 - Release Date: 10/4/2007 5:03 PM
