You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Maxime Brunet <ma...@gmail.com> on 2006/05/17 22:52:19 UTC

Visual Studio 2005 Localization

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'
----------------------------------------------------------

Re: Visual Studio 2005 Localization

Posted by Maxime Brunet <ma...@gmail.com>.
David,

Thanks a lot for your help it is greatly appreciated. I've checked out from
subversion and everything works fine.

Regards,

Maxime Brunet
Montreal, Canada

On 5/17/06, David Bertoni <db...@apache.org> wrote:
>
> Maxime Brunet wrote:
> > 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.
> >
>
> The simplest thing to do is just to get the trunk of the Subversion
> repository a use that instead of 1.10.  Xalan-C 1.10 requires patching,
> and I'm not even sure my patch can be applied cleanly to 1.10.
>
> If you want to try, you can see this Jira issue for the patch:
>
> http://issues.apache.org/jira/browse/XALANC-584
>
> Dave
>



-- 

maxime.brunet@gmail.com

Re: Visual Studio 2005 Localization

Posted by David Bertoni <db...@apache.org>.
Maxime Brunet wrote:
> 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.
> 

The simplest thing to do is just to get the trunk of the Subversion 
repository a use that instead of 1.10.  Xalan-C 1.10 requires patching, 
and I'm not even sure my patch can be applied cleanly to 1.10.

If you want to try, you can see this Jira issue for the patch:

http://issues.apache.org/jira/browse/XALANC-584

Dave