Visual Studio 2008 C++ 无 x64 平台

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5979675/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 19:16:53  来源:igfitidea点击:

visual studio 2008 C++ no x64 platform

c++visual-studiovisual-studio-200864-bitwindows-7-x64

提问by cubesoft

I installed Visual Studio 2008 on my Windows 7 x64 laptop together with installation of Service Pack 1.

我在 Windows 7 x64 笔记本电脑上安装了 Visual Studio 2008,同时安装了 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.

现在我想将 x64 平台添加到我的 C++ 解决方案中。但是在我的项目的配置管理器中没有可用的 x64 平台。我确定我在 Visual Studio 安装过程中手动选择了 x64 支持并安装了它。

What is wrong with my setup?

我的设置有什么问题?

回答by Adrian McCarthy

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.

如果我记得,VS 2008 Pro 默认不安装 64 位编译器和工具。您必须在安装过程中明确选择它们。

  1. Control Panel -> Uninstall Programs.
  2. Select Visual Studio and click Uninstall/Change.
  3. Wait. Wait some more. Click Next.
  4. Choose Add or Remove Features.
  5. Expand MSVC 2008-> Language Tools-> Visual C++.
  6. Select X64 Compilers and Tools.
  1. 控制面板 ->卸载程序
  2. 选择 Visual Studio 并单击卸载/更改
  3. 等待。再等一会儿。单击下一步
  4. 选择添加或删除功能
  5. 展开MSVC 2008->语言工具-> Visual C++
  6. 选择X64 编译器和工具

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.

安装 64 位编译器和工具后,您应该能够将 64 位配置添加到您的解决方案中。

回答by joce

See "Use Visual Studio to build 64-bit application"for all you need to build x64 apps with Visual Studio 2008.

有关使用Visual Studio 2008 构建 x64 应用程序所需的全部信息,请参阅“使用 Visual Studio 构建 64 位应用程序”

回答by Cory Nelson

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.

Visual Studio 2008 仅带有专业版及更高版本的 x64 编译器。您可以从 MSDN 下载免费的 Windows SDK 以获取 x64 编译器。

回答by dash-tom-bang

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.

如果您的项目没有 x64 配置,只需通过配置管理器添加该配置。我不记得 2008 年是否默认创建了 x64 配置,但我怀疑不是。

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.

我似乎还记得您可以将 x64 配置添加到解决方案中,它会提示是否将其添加到所有包含的项目中,但我对那个项目的记忆很模糊。

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.

无论如何,一旦添加了配置,您就需要修改之前在项目设置中修改过的任何内容。输出路径、库依赖等。新配置“向导”非常愚蠢。