视觉工作室 2008 C++没有 x64 平台
我在 Windows 7 x64 笔记本电脑上安装了 Visual Studio 2008,并安装了 Service Pack 1。
现在我想将 x64 平台添加到我的 C++ 解决方案中。但我的项目的配置管理器中没有可用的 x64 平台。我确信我在 Visual Studio 安装期间手动选择了 x64 支持并且它已安装。
我的设置有什么问题吗?
I installed Visual Studio 2008 on my Windows 7 x64 laptop together with installation of Service Pack 1.
Now I want to add x64 platform to my C++ solution. But there is no x64 platform available in the configuration manager for my project. I'm sure I manually selected x64 support during the Visual Studio installation and it was installed.
What is wrong with my setup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果我没记错的话,VS 2008 Pro 默认情况下不安装 64 位编译器和工具。您必须在安装过程中明确选择它们。
您可能需要原始安装介质。
安装 64 位编译器和工具后,您应该能够将 64 位配置添加到您的解决方案中。
If I recall, VS 2008 Pro doesn't install the 64-bit compiler and tools by default. You have to explicitly select them during the installation.
You'll probably need your original installation media.
Once the 64-bit compiler and tools are installed, you should be able to add a 64-bit configuration to your solution.
请参阅 “使用 Visual Studio 构建 64 位应用程序”,满足您使用 Visual Studio 2008 构建 x64 应用程序所需的一切。
See "Use Visual Studio to build 64-bit application" for all you need to build x64 apps with Visual Studio 2008.
Visual Studio 2008 仅在 Professional 版本及更高版本中附带 x64 编译器。您可以从 MSDN 下载免费的 Windows SDK 来获取 x64 编译器。
Visual Studio 2008 only comes with x64 compiler with the Professional editions and higher. You can download the free Windows SDK from MSDN to get the x64 compiler.
如果您的项目没有 x64 配置,只需通过配置管理器添加该配置即可。我不记得 2008 年是否默认创建了 x64 配置,但我怀疑没有。
我似乎还记得,您可以将 x64 配置添加到解决方案中,它会提示是否将其添加到所有包含的项目中,但我对此已经记不清了。
无论如何,添加配置后,您需要修改之前在项目设置中修改的所有内容。输出路径、库依赖项等。新配置“向导”非常愚蠢。
If your projects don't have the x64 configuration, just add that configuration via the configuration manager. I don't remember if 2008 created the x64 configuration by default but I suspect not.
I also seem to remember that you can just add the x64 configuration to the solution and it will prompt on whether or not to add it to all of the contained projects but my memory is rusty on that one.
Regardless, once you've got the configurations added, you'll need to modify anything you'd modified before in project settings. Output paths, library dependencies, etc. The New Configuration "Wizard" is pretty dumb.