2016-11-04 36 views
-1

我已安裝Visual C++ 2008 Express Edition。從這裏我已經安裝了用於x64位編譯的MICROSOFT WINDOWS SOFTWARE DEVELOPMENT KIT FOR WINDOWS 7 and .NET FRAMEWORK 4即使在安裝Visual C++ 2008 Express和Windows SDK後也無法編譯爲x64

現在我可以在配置菜單中看到通過IDE的x64選項。但每當我嘗試建立與此Debug|x64選擇,我得到的是:

========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ========== 

它從來沒有得到建立和總是失敗。 我也試圖從cmd打造即使沒有內C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin

amd64\vcvarsamd64.bat文件夾通過msbuild "[PROJECT_PATH].sln" /t:Clean,Build /p:Configuration=Debug;Platform=x64我得到這個:

Microsoft (R) Build Engine Version 3.5.30729.5420 
[Microsoft .NET Framework, Version 2.0.50727.5420] 
Copyright (C) Microsoft Corporation 2007. All rights reserved. 

Build started 11/4/2016 11:55:00 AM. 
Project "[PROJECT_PATH].sln" on node 0 (Clean;Build target(s)). 
    Building solution configuration "Debug|x64". 
vcbuild.exe : error VCBLD0004: Project '[PROJECT_PATH].vcproj' does not contain a configuration called 'Debug|x64'. 
vcbuild.exe : error VCBLD0004: Project '[PROJECT_PATH].vcproj' does not contain a configuration called 'Debug|x64'. 
vcbuild.exe : error VCBLD0004: Project '[PROJECT_PATH].vcproj' does not contain a configuration called 'Debug|x64'. 
Done Building Project "[PROJECT_PATH].sln" (Clean;Build target(s)) -- FAILED. 


Build FAILED. 

好像工具未安裝,但我已經選擇後安裝了Windows SDK編譯工具,那爲什麼不是? 任何想法出了什麼問題?

+0

是* full *和* complete *構建輸出嗎? –

+0

是的,輸出窗口中沒有任何其他內容。 – Maven

回答

0

Windows SDK不包含任何C++編譯器,而VC++ 2008 Express版本僅爲32位。您需要安裝64位編譯器(更新版本的VC++ Express可用64位版本)。

相關問題