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

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

问题描述

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

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 /构建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文件。有几个 64 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.

构建工具能够<一个href="http://blogs.msdn.com/b/windowssdk/archive/2007/09/08/updated-windows-sdk-visual-c-cross-compilers.aspx">cross-compile在3大平台,你可以选择哪些平台你的目标。如果你想确保你使用的是64位编译器,那么你要从命令 - 运行与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.

<一个href="http://blogs.msdn.com/b/visualstudio/archive/2010/05/07/building-on-cross-targeting-scenarios-and-64-bit-msbuild.aspx">Read本文对一些在交叉编译陷阱的64 。

构建工具是 Windows SDK的的一部分,网络安装程序平台感知和意志安装64位计算能力的构建环境。 (或者,如果你下载安装ISO映像,一定要拿到64一 - 看到<一href="http://blogs.msdn.com/b/windowssdk/archive/2010/05/25/released-windows-sdk-for-windows-7-and-net-framework-4.aspx">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.

(最后请注意,有一个<一href="http://blogs.msdn.com/b/windowssdk/archive/2009/06/15/installing-win-7-sdk-rc-and-vs2008-rtm-can-disable-vc-configuration-platform-choices.aspx">known问题仅如果您已经安装了SDK的的VS 2008 RTM ,但是这是可以解决以下知识库文章中的说明。)

(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中的Windows 7 64位(用于创建64位二进制文​​件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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