64bit compilation with visual studio express 2013

£可爱£侵袭症+ 提交于 2020-01-03 02:22:44

问题


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:


  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.



来源:https://stackoverflow.com/questions/39691739/64bit-compilation-with-visual-studio-express-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!