即使安装了Visual c++ 2008 Express和Windows SDK,也无法编译x64
Cant compile for x64 even after installing Visual C++ 2008 Express and Windows SDK
我已经安装了Visual C++ 2008 Express Edition
。从这里我已经安装了MICROSOFT WINDOWS SOFTWARE DEVELOPMENT KIT FOR WINDOWS 7 and .NET FRAMEWORK 4
为x64位编译。
现在我可以在配置菜单中通过IDE看到x64的选项。但每当我尝试构建这个Debug|x64
选择,我得到的是:
========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ==========
它永远不会被构建并且总是失败。C:Program Files (x86)Microsoft Visual Studio 9.0VCbin
amd64vcvarsamd64.bat
文件夹即使试图从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,那么为什么不是呢?知道哪里出了问题吗?
Windows SDK不包含任何c++编译器,vc++ 2008 Express版本只有32位。您需要安装64位编译器(最新版本的vc++ Express有64位版本)。
相关文章:
- 使用外部SDK工具链文件在VisualStudio上生成项目编译错误
- 为x86而非x64编译时出错
- 为什么在 x64 中忽略__stdcall调用约定?
- Vulkan SDK 版本 1.1.85.0 在 Kubuntu 18.10 上链接
- 使用 VS2015 在 Windows 10 上构建 Fortran .lib x64 位并将其链接到 C++
- 升级到 Windows 10 版本 1809 SDK 后,我无法编译使用 C++/WinRT 的项目
- 在设计 SDK 时,我是否应该在 C++ 头文件中完全隐藏内部类?
- 加载"D:UsersPublicDocumentsopencvbuildx64vc14binopencv_world340d.dll",找不到或打开PDB文件
- VS 2017 使用交叉编译器构建 x64 项目
- Eventloop 卡住:NAO C++ SDK OnFaceDetection 示例
- 构建失败错误:无法使用 qibuild 构建C++ SDK Helloworld
- 在VS2019项目中集成ImageMagick:x64-windows-static library
- C++变量在调用 x64 程序集函数后重置为 0
- 在 masm x64 上打印具有多个参数
- Microsoft C++ 用于图形 API 的 Rest SDK
- 如何检索 Steamwork SDK 的当前版本
- 在Visual Studio中使用vcpkg使用paho-mqtt x64时出错
- 以 x64 配置访问证书公钥
- 佳能SDK无法从相机下载图片
- 即使安装了Visual c++ 2008 Express和Windows SDK,也无法编译x64