Visual Studio 2008 for Windows 7 64 位(用于创建 64 位二进制文​​件) [英] Visual Studio 2008 for Windows 7 64 bit (for creating 64 bit binaries)

查看:27
本文介绍了Visual Studio 2008 for Windows 7 64 位(用于创建 64 位二进制文​​件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 32 位 Visual Studio 将安装在 Windows 7 64 位机器上,但我想它只能用于创建 32 位 dll.是否有单独的 Visual Studio 安装程序可用于安装可用于创建 64 位 dll 的 64 位 Visual Studio?

I know the 32 bit visual studio will install on Windows 7 64 bit machine, but I suppose it can only be used to create 32 bit dlls. Is there a separate visual studio installer available to install 64 bit Visual studio that can be used for creating 64 bit dlls?

抱歉这么久没有访问我自己的问题.我正在使用 devenv 命令构建解决方案: devenv mysolution.sln/build "RELEASE|WIN64"

Sorry for not visiting my own question for so long. I'm building the solution using devenv command: devenv mysolution.sln /build "RELEASE|WIN64"

它跳过了构建所有项目.于是我在Visual Studio中打开了解决方案,在构建配置管理器中,我设置了

It skipped building all projects. So I opened the solution in Visual Studio, and in the build Configuration manager, I set

主动方案配置:发布主动方案平台:win64

Active Solution Configuration: Release Active Solution Platform: win64

但在项目上下文中(检查要构建或部署的项目配置):

But in the Project contexts (check the project configurations to build or deploy):

配置:发布平台:此下拉列表中仅提供 Win32,而非 win64.

Configuration: Release Platform: Win32 alone is available in this dropdown, not win64.

我需要做什么?

推荐答案

您正确地注意到 Visual Studio(甚至 v2010)是一个 32 位应用程序,并且将默认运行 32 位构建环境,其中大多数情况下都适合创建在 x86 和 x64 上都能很好地运行的 EXE.您可以(并且应该)在安装过程中选择一些 x64 VS 组件.

You are correct in noting that Visual Studio (even v2010) is a 32-bit app, and will default to running the 32-bit build environment, which in most cases is good for creating EXEs that work well on both x86 and x64. There are a few x64 VS components that you can (and should) choose during the installation.

构建工具能够针对 3 个主要平台进行交叉编译,您可以选择目标平台.如果您想确定您使用的是 x64 编译器,那么您需要 从命令运行它-与 DEVENV 一致.

The build tools are able to cross-compile for the 3 major platforms, and you can pick which platform you're targeting. If you want to be sure you're using the x64 compiler, then you want to run it from the command-line with DEVENV.

阅读这篇文章,了解有关 x64 交叉编译的一些陷阱".

构建工具是 Windows SDK 的一部分,并且 Web 安装程序具有平台感知能力并且将安装支持 64 位的构建环境.(或者,如果您要下载 ISO 映像进行安装,请务必获取 x64 映像——请参阅 SDK 发行说明.)安装后,您应该会在开始菜单组中看到启动命令提示符的图标设置了 x86、x64 和 ia64 选项.

The build tools are part of the Windows SDK, and the web installer is platform-aware and will install 64-bit capable build environment. (Or if you're downloading the ISO image for installation, be sure to get the x64 one--see the SDK Release Notes.) After installation, you should see icons in the Start Menu group which launch the command prompt with x86, x64 and ia64 options set.

(最后,请注意有一个 已知问题 仅当您之前 VS 2008 RTM 安装了 SDK,但可以按照说明进行修复在知识库文章中.)

(Lastly, note that there a known issue only if you have installed the SDK before VS 2008 RTM, but that is fixable following the directions in the KB article.)

这篇关于Visual Studio 2008 for Windows 7 64 位(用于创建 64 位二进制文​​件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆