使用 Visual Studio Express 2013 进行 64 位编译 [英] 64bit compilation with visual studio express 2013

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

问题描述

我必须编译一个 C++ 项目并使其作为 64 位应用程序运行以避免 32 位内存限制.

I have to compile a C++ project and make it run as 64bit application to avoid the 32bit memory limitation.

我的 IDE 是适用于 Windows 桌面的 Visual Studio 2013 Express

My IDE is Visual Studio 2013 Express for Windows Desktop

我找不到有关如何执行此操作的明确答案,有人有解决方案吗?

I couldn't find a clear answer on how to do this, anybody has a solution ?

推荐答案

  1. 从命令行加载交叉编译器:

call %VSDIR%VCvcvarsall.bat x86_amd64

  1. 开放解决方案

%VSDIR%Common7IDEWDExpress.exe solution.sln

就是这样.

x86_amd64 切换到生成 64 位代码指令的编译器(恰好是 32 位程序).所以编译器本身绑定了2Go内存,但是生成的程序没有这个限制.

The x86_amd64 switch to a compiler (which happens to be a 32bit program) that produces 64bit code instructions. So the compiler itself is bound to 2Go memory, but the resulting program does not have this limitation.

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

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