RRR RRR - 5 months ago 70
C++ Question

How to compile with Visual Studio x64?

I would like to compile in VS2008 x64 from bat file.

When I compile in VS2008 32 bits I call vsvars32.bat.

What do I need to call to compile in x64?


Nowadays the recommendation is not to use vsvar32.bat and use SetEnv.cmd instead to set up your build environment. Pass the /x64 argument to select a 64 bit build environment. This MSDN page has some more information about SetEnv.cmd.