You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Sameer Sudame (JIRA)" <xe...@xml.apache.org> on 2005/07/12 16:52:13 UTC

[jira] Created: (XERCESC-1457) Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.

Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.
----------------------------------------------------------------------------------------------------------

         Key: XERCESC-1457
         URL: http://issues.apache.org/jira/browse/XERCESC-1457
     Project: Xerces-C++
        Type: Bug
  Components: Build  
    Versions: 2.6.0    
 Environment: amd64, windows XP, visual studio 8 (beta 2)
    Reporter: Sameer Sudame


Hi,

When compiling XercesLib.mak using visual studio 8 build environment on amd64 machine, I am getting following errror:

Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50215.44 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

cl   /MD /Ze /W3 /GX /O2 /I "..\..\..\..\..\src" /D "WIN64" /D "NDEBUG" /D "PLAT
FORM_WIN32" /D "_CRTDBG_MAP_ALLOC" /D "PROJ_XMLPARSER" /D "PROJ_XMLUTIL" /D "PRO
J_PARSERS" /D "PROJ_SAX4C" /D "PROJ_SAX2" /D "PROJ_DOM" /D "PROJ_VALIDATORS" /D
"XML_SINGLEDLL" /D "WIN32" /D "_WINDOWS" /D "XML_USE_WIN32_TRANSCODER" /D "XML_U
SE_WIN32_MSGLOADER" /D "XML_USE_NETACCESSOR_WINSOCK" /Fo".\..\..\..\..\..\Build\
Win64\VC6\Release\obj\\" /Fd".\..\..\..\..\..\Build\Win64\VC6\Release\obj\\" /FD
 /c ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp
cl : Command line warning D9035 : option 'Ze' has been deprecated and will be re
moved in a future release
cl : Command line warning D9035 : option 'GX' has been deprecated and will be re
moved in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'

Win32MsgLoader.cpp
..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp(175) : error
 C2664: 'wcsncpy' : cannot convert parameter 1 from 'XMLCh *const ' to 'wchar_t
*'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-
style cast or function-style cast
NMAKE : fatal error U1077: '"C:\program files\Microsoft Visual Studio 8\vc\bin\x
86_amd64\cl.exe"' : return code '0x2'
Stop.

Am I doing something wrong? 

Sameer

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1457) Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1457?page=comments#action_12315595 ] 

Alberto Massari commented on XERCESC-1457:
------------------------------------------

Hi Sameer,
please use the solution found in the VC7.1 directory (selecting the Win64 configuration), as the XercesLib.mak could be outdated, and let us know if it works.

Alberto

> Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1457
>          URL: http://issues.apache.org/jira/browse/XERCESC-1457
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build
>     Versions: 2.6.0
>  Environment: amd64, windows XP, visual studio 8 (beta 2)
>     Reporter: Sameer Sudame

>
> Hi,
> When compiling XercesLib.mak using visual studio 8 build environment on amd64 machine, I am getting following errror:
> Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50215.44 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
> cl   /MD /Ze /W3 /GX /O2 /I "..\..\..\..\..\src" /D "WIN64" /D "NDEBUG" /D "PLAT
> FORM_WIN32" /D "_CRTDBG_MAP_ALLOC" /D "PROJ_XMLPARSER" /D "PROJ_XMLUTIL" /D "PRO
> J_PARSERS" /D "PROJ_SAX4C" /D "PROJ_SAX2" /D "PROJ_DOM" /D "PROJ_VALIDATORS" /D
> "XML_SINGLEDLL" /D "WIN32" /D "_WINDOWS" /D "XML_USE_WIN32_TRANSCODER" /D "XML_U
> SE_WIN32_MSGLOADER" /D "XML_USE_NETACCESSOR_WINSOCK" /Fo".\..\..\..\..\..\Build\
> Win64\VC6\Release\obj\\" /Fd".\..\..\..\..\..\Build\Win64\VC6\Release\obj\\" /FD
>  /c ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp
> cl : Command line warning D9035 : option 'Ze' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9035 : option 'GX' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
> Win32MsgLoader.cpp
> ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp(175) : error
>  C2664: 'wcsncpy' : cannot convert parameter 1 from 'XMLCh *const ' to 'wchar_t
> *'
>         Types pointed to are unrelated; conversion requires reinterpret_cast, C-
> style cast or function-style cast
> NMAKE : fatal error U1077: '"C:\program files\Microsoft Visual Studio 8\vc\bin\x
> 86_amd64\cl.exe"' : return code '0x2'
> Stop.
> Am I doing something wrong? 
> Sameer

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1457) Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.

Posted by "David Bertoni (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1457?page=comments#action_12315617 ] 

David Bertoni commented on XERCESC-1457:
----------------------------------------

You need to remove the option that treats wchar_t as a built-in type:

1. Open the project properties for the XercesLib target
2. Click on the C/C++ tab.
3. Click on the Language tab.
4. Change the option "Treat wchar_t as Built-in Type" to "no"

Make sure you do this for all of the targets you want to build.

> Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1457
>          URL: http://issues.apache.org/jira/browse/XERCESC-1457
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build
>     Versions: 2.6.0
>  Environment: amd64, windows XP, visual studio 8 (beta 2)
>     Reporter: Sameer Sudame

>
> Hi,
> When compiling XercesLib.mak using visual studio 8 build environment on amd64 machine, I am getting following errror:
> Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50215.44 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
> cl   /MD /Ze /W3 /GX /O2 /I "..\..\..\..\..\src" /D "WIN64" /D "NDEBUG" /D "PLAT
> FORM_WIN32" /D "_CRTDBG_MAP_ALLOC" /D "PROJ_XMLPARSER" /D "PROJ_XMLUTIL" /D "PRO
> J_PARSERS" /D "PROJ_SAX4C" /D "PROJ_SAX2" /D "PROJ_DOM" /D "PROJ_VALIDATORS" /D
> "XML_SINGLEDLL" /D "WIN32" /D "_WINDOWS" /D "XML_USE_WIN32_TRANSCODER" /D "XML_U
> SE_WIN32_MSGLOADER" /D "XML_USE_NETACCESSOR_WINSOCK" /Fo".\..\..\..\..\..\Build\
> Win64\VC6\Release\obj\\" /Fd".\..\..\..\..\..\Build\Win64\VC6\Release\obj\\" /FD
>  /c ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp
> cl : Command line warning D9035 : option 'Ze' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9035 : option 'GX' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
> Win32MsgLoader.cpp
> ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp(175) : error
>  C2664: 'wcsncpy' : cannot convert parameter 1 from 'XMLCh *const ' to 'wchar_t
> *'
>         Types pointed to are unrelated; conversion requires reinterpret_cast, C-
> style cast or function-style cast
> NMAKE : fatal error U1077: '"C:\program files\Microsoft Visual Studio 8\vc\bin\x
> 86_amd64\cl.exe"' : return code '0x2'
> Stop.
> Am I doing something wrong? 
> Sameer

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1457) Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.

Posted by "Sameer Sudame (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1457?page=comments#action_12315610 ] 

Sameer Sudame commented on XERCESC-1457:
----------------------------------------

Hi Alberto,

I tried your suggestion. 

XercesLib.vcproj file in vc7 directory does not have win64 configuration. I used win32 configuration and defined win64. It results in same error.

Sameer

> Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1457
>          URL: http://issues.apache.org/jira/browse/XERCESC-1457
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build
>     Versions: 2.6.0
>  Environment: amd64, windows XP, visual studio 8 (beta 2)
>     Reporter: Sameer Sudame

>
> Hi,
> When compiling XercesLib.mak using visual studio 8 build environment on amd64 machine, I am getting following errror:
> Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50215.44 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
> cl   /MD /Ze /W3 /GX /O2 /I "..\..\..\..\..\src" /D "WIN64" /D "NDEBUG" /D "PLAT
> FORM_WIN32" /D "_CRTDBG_MAP_ALLOC" /D "PROJ_XMLPARSER" /D "PROJ_XMLUTIL" /D "PRO
> J_PARSERS" /D "PROJ_SAX4C" /D "PROJ_SAX2" /D "PROJ_DOM" /D "PROJ_VALIDATORS" /D
> "XML_SINGLEDLL" /D "WIN32" /D "_WINDOWS" /D "XML_USE_WIN32_TRANSCODER" /D "XML_U
> SE_WIN32_MSGLOADER" /D "XML_USE_NETACCESSOR_WINSOCK" /Fo".\..\..\..\..\..\Build\
> Win64\VC6\Release\obj\\" /Fd".\..\..\..\..\..\Build\Win64\VC6\Release\obj\\" /FD
>  /c ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp
> cl : Command line warning D9035 : option 'Ze' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9035 : option 'GX' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
> Win32MsgLoader.cpp
> ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp(175) : error
>  C2664: 'wcsncpy' : cannot convert parameter 1 from 'XMLCh *const ' to 'wchar_t
> *'
>         Types pointed to are unrelated; conversion requires reinterpret_cast, C-
> style cast or function-style cast
> NMAKE : fatal error U1077: '"C:\program files\Microsoft Visual Studio 8\vc\bin\x
> 86_amd64\cl.exe"' : return code '0x2'
> Stop.
> Am I doing something wrong? 
> Sameer

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1457) Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.

Posted by "Sameer Sudame (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1457?page=comments#action_12315707 ] 

Sameer Sudame commented on XERCESC-1457:
----------------------------------------

Hi David,

Adding /Zc:wchar_t- to compiler flags fixed the error. Thanks a lot.

Sameer

> Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1457
>          URL: http://issues.apache.org/jira/browse/XERCESC-1457
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build
>     Versions: 2.6.0
>  Environment: amd64, windows XP, visual studio 8 (beta 2)
>     Reporter: Sameer Sudame

>
> Hi,
> When compiling XercesLib.mak using visual studio 8 build environment on amd64 machine, I am getting following errror:
> Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50215.44 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
> cl   /MD /Ze /W3 /GX /O2 /I "..\..\..\..\..\src" /D "WIN64" /D "NDEBUG" /D "PLAT
> FORM_WIN32" /D "_CRTDBG_MAP_ALLOC" /D "PROJ_XMLPARSER" /D "PROJ_XMLUTIL" /D "PRO
> J_PARSERS" /D "PROJ_SAX4C" /D "PROJ_SAX2" /D "PROJ_DOM" /D "PROJ_VALIDATORS" /D
> "XML_SINGLEDLL" /D "WIN32" /D "_WINDOWS" /D "XML_USE_WIN32_TRANSCODER" /D "XML_U
> SE_WIN32_MSGLOADER" /D "XML_USE_NETACCESSOR_WINSOCK" /Fo".\..\..\..\..\..\Build\
> Win64\VC6\Release\obj\\" /Fd".\..\..\..\..\..\Build\Win64\VC6\Release\obj\\" /FD
>  /c ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp
> cl : Command line warning D9035 : option 'Ze' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9035 : option 'GX' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
> Win32MsgLoader.cpp
> ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp(175) : error
>  C2664: 'wcsncpy' : cannot convert parameter 1 from 'XMLCh *const ' to 'wchar_t
> *'
>         Types pointed to are unrelated; conversion requires reinterpret_cast, C-
> style cast or function-style cast
> NMAKE : fatal error U1077: '"C:\program files\Microsoft Visual Studio 8\vc\bin\x
> 86_amd64\cl.exe"' : return code '0x2'
> Stop.
> Am I doing something wrong? 
> Sameer

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Resolved: (XERCESC-1457) Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1457?page=all ]
     
Alberto Massari resolved XERCESC-1457:
--------------------------------------

    Resolution: Duplicate

Duplicate of XERCESC-1325

> Build fails for win64 release configuration when compiling using visual studio 8(beta 2) on amd64 machine.
> ----------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1457
>          URL: http://issues.apache.org/jira/browse/XERCESC-1457
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build
>     Versions: 2.6.0
>  Environment: amd64, windows XP, visual studio 8 (beta 2)
>     Reporter: Sameer Sudame

>
> Hi,
> When compiling XercesLib.mak using visual studio 8 build environment on amd64 machine, I am getting following errror:
> Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50215.44 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
> cl   /MD /Ze /W3 /GX /O2 /I "..\..\..\..\..\src" /D "WIN64" /D "NDEBUG" /D "PLAT
> FORM_WIN32" /D "_CRTDBG_MAP_ALLOC" /D "PROJ_XMLPARSER" /D "PROJ_XMLUTIL" /D "PRO
> J_PARSERS" /D "PROJ_SAX4C" /D "PROJ_SAX2" /D "PROJ_DOM" /D "PROJ_VALIDATORS" /D
> "XML_SINGLEDLL" /D "WIN32" /D "_WINDOWS" /D "XML_USE_WIN32_TRANSCODER" /D "XML_U
> SE_WIN32_MSGLOADER" /D "XML_USE_NETACCESSOR_WINSOCK" /Fo".\..\..\..\..\..\Build\
> Win64\VC6\Release\obj\\" /Fd".\..\..\..\..\..\Build\Win64\VC6\Release\obj\\" /FD
>  /c ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp
> cl : Command line warning D9035 : option 'Ze' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9035 : option 'GX' has been deprecated and will be re
> moved in a future release
> cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
> Win32MsgLoader.cpp
> ..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32\Win32MsgLoader.cpp(175) : error
>  C2664: 'wcsncpy' : cannot convert parameter 1 from 'XMLCh *const ' to 'wchar_t
> *'
>         Types pointed to are unrelated; conversion requires reinterpret_cast, C-
> style cast or function-style cast
> NMAKE : fatal error U1077: '"C:\program files\Microsoft Visual Studio 8\vc\bin\x
> 86_amd64\cl.exe"' : return code '0x2'
> Stop.
> Am I doing something wrong? 
> Sameer

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org