您的位置:首页 > 其它

关于Visual Studio 2010与64位系统的问题

2012-03-31 08:40 495 查看
这种问题是在论坛里经常被问到的问题:有没有64位的VS2010?Vs2010能不能编译64位的程序?

我的回答是这样的:

1. VS2010没有专门的64位版。但32位版可以在64位系统上面正常使用。

2. 

如果安装VS2010的时候,在安装选项里面,选择了 X64 Compilers and Tools

那么你就可以编译x64版本的程序;

同理如果你在安装选项里面选择了Itanium Compilers and Tools

那么你就可以编译IA64版本的程序;

当然如果你安装VS2010的时候选择的是“全部安装”,那么这两项选择肯定是包含在内的。

Itanium Compilers and Tools

Includes the Itanium compiler, tools, and libraries for the C Run-Time (CRT), Standard C++ Library, Active Template Library (ATL), and OpenMP.

X64 Compilers and Tools

Includes the x64 compiler, tools, and libraries for the C Run-Time (CRT), Standard C++ Library, Microsoft Foundation Class (MFC), Active Template Library (ATL), OpenMP, and parallel computing.

3. 你创建一个Visual C++工程之后,可以在编译选项里面指定x86、x64或IA64的Target machine。

无图无真相,下面我们贴点相关的截图:



Figure 1: Add or remove features



Figure 2: Target Machine setting for Linker



Figure 3: Batch Build



Figure 4: Batch build output window

相关链接:

VS2010没64位版本?? http://social.msdn.microsoft.com/Forums/zh-CN/vstudiozhchs/thread/8c6ac5d6-ce8e-44e4-b4e8-0db3359c37fd/ Visual Studio: Why is there no 64 bit version? (yet) http://blogs.msdn.com/b/ricom/archive/2009/06/10/visual-studio-why-is-there-no-64-bit-version.aspx 5 Tips for Developing with 64-Bit Windows http://visualstudiomagazine.com/Articles/2009/07/01/5-Tips-for-Developing-with-64-Bit-Windows.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息