I'm trying to build Xalan-C 1.10 (with Xerces-C 2.7)using Visual Studio 2005 and I have encountered a problem that has been discussed here before - but can't seem to find the right answer for.
Following David Bertoni's advice in a previous post, I rebuilt Xerces-C using the "Don't treat wchar_t as a standard type". Everything went through. I used the same setup on all Xalan projects, but to no avail. I get an error message like the one on the bottom. Any help on this matter would be greatly appreciated as my hairline is slowly fading away due to excessive pulling. Regards, Maxime Brunet ---------------------------------------------------------- Performing Makefile project actions Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. Used BITS = Win32 Used CFG = Release Used LOCALE = en_US Used TYPE = inmem Used XLIFF file: "XalanMsg_en_US.xlf" Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. cl.exe /nologo /ML /W4 /GX /O2 /I ".\\" /I .\..\..\..\..\..\src /I "C:\temp\xerces-c-src_2_7_0\src" /I "C:\temp\xerces-c-src_2_7_0\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fp".\..\..\..\..\..\Build\Win32\VC7.1\Release\Util\MsgCreator\MsgCreator.pch" /YX /Fo".\..\..\..\..\..\Build\Win32\VC7.1\Release\Util\MsgCreator\\" /Fd".\..\..\..\..\..\Build\Win32\VC7.1\Release\Util\MsgCreator\\" /FD /c ..\..\..\..\..\src\xalanc\Utils\MsgCreator\ICUResHandler.cpp cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release cl : Command line warning D9036 : use 'EHsc' instead of 'GX' cl : Command line warning D9002 : ignoring unknown option '/ML' cl : Command line warning D9002 : ignoring unknown option '/YX' ICUResHandler.cpp ..\..\..\..\..\src\xalanc\Utils\MsgCreator\ICUResHandler.cpp(89) : error C2664: 'void XalanFileOutputStream::write(const UTF16Ch *,unsigned int)' : cannot convert parameter 1 from 'XMLCh [512]' to 'const UTF16Ch *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\..\..\..\..\src\xalanc\Utils\MsgCreator\ICUResHandler.cpp(150) : error C2664: 'void XalanFileOutputStream::write(const UTF16Ch *,unsigned int)' : cannot convert parameter 1 from 'XMLCh *' to 'const UTF16Ch *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast NMAKE : fatal error U1077: '"d:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: 'if' : return code '0x2' ----------------------------------------------------------