georges abitbol
georges abitbol

Reputation: 196

64bit compilation with visual studio express 2013

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 ?

Upvotes: 1

Views: 1247

Answers (1)

georges abitbol
georges abitbol

Reputation: 196

  1. From command line, load the cross-compiler :
call %VSDIR%\VC\vcvarsall.bat x86_amd64
  1. 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.

Upvotes: 1

Related Questions