我安装了Visual C++ 2008 Express Edition
。从这里开始,我为x64位编译安装了MICROSOFT WINDOWS SOFTWARE DEVELOPMENT KIT FOR WINDOWS 7 and .NET FRAMEWORK 4
。
现在我可以在配置菜单中看到通过IDE的x64选项。但是每当我尝试使用这个Debug|x64
进行构建时,我得到的只有:
========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ==========
永远不会构建并始终失败。
我在amd64\vcvarsamd64.bat
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
个文件夹
即使尝试从cmd
到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 :(得分:0)
Windows SDK不包含任何C ++编译器,VC ++ 2008 Express版本仅为32位。您需要安装64位编译器(更新版本的VC ++ Express有64位版本)。