64位编译与visual studio express 2013 [英] 64bit compilation with visual studio express 2013

查看:318
本文介绍了64位编译与visual studio express 2013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的IDE是Visual Studio 2013 Express for Windows Desktop

/ p>

我找不到一个清楚的答案,任何人都有解决方案。

方案


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



    调用%VSDIR%\VC \vcvarsall.bat x86_amd64


  2. 打开解决方案



    %VSDIR%\Common7\IDE \WDExpress.exe solution.sln


就是这样。



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


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

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. From command line, load the cross-compiler :

    call %VSDIR%\VC\vcvarsall.bat x86_amd64

  2. Open solution

    %VSDIR%\Common7\IDE\WDExpress.exe solution.sln

and that's it.

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.

这篇关于64位编译与visual studio express 2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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