使用 Visual Studio 为 x64 编译? [英] Compile for x64 with Visual Studio?

查看:36
本文介绍了使用 Visual Studio 为 x64 编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:假设一个 C++ hello world 程序,非 .NET.使用 Visual Studio 2005/2008/2010,如何编译 64 位应用程序?我有一个 64 位 Windows,但默认情况下,VS 似乎编译 32 位可执行文件...

Question: Assume a C++ hello world program, non .NET. With Visual Studio 2005/2008/2010, how can I compile a 64-Bit application ? I have a 64 Bit Windows, but by default, VS seems to compile 32 bit executables...

在带有 g++ 的 Linux 上,我可以使用 -m32 和 -m64,但是如何使用 Windows 编译 64 位解决方案?2005 甚至有可能吗?或者是否需要 2008 甚至 2010 Beta,甚至一些 x64 SDK?

On Linux with g++, I can use -m32 and -m64, but how can I compile a 64 bit solution with Windows ? Is it even possible with 2005 ? Or does one need 2008 or even 2010 Beta, or even some x64 SDK ?

推荐答案

Microsoft 提供了分步说明:http://msdn.microsoft.com/en-us/library/9yb4317s.aspx

There is a step-by-step instructions by Microsoft: http://msdn.microsoft.com/en-us/library/9yb4317s.aspx

这篇关于使用 Visual Studio 为 x64 编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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