RRR RRR - 1 year ago 167
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download