Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 667
RRR Avatar asked Apr 22 '12 12:04

RRR


People also ask

How do I change from x86 to x64 in Visual Studio?

From the BUILD menu in Visual Studio, select Configuration Manager. From the Active solution platform drop-down list, select New. The New Solution Platform dialog displays. In the Type or select new platform combination box, select x64.

How do I compile in Visual Studio?

Open Visual Studio. Go to File > Open > Folder… and open the MuseScore checkout folder. Visual Studio will automatically begin to generate a CMake cache, which will include the Visual Studio solution and project files.

What is x64 in Visual Studio?

Visual Studio enables you to set up your applications to target different platforms, including 64-bit platforms. For more information on 64-bit platform support in Visual Studio, see 64-bit applications. Note. Visual Studio 2022 on Windows is now a 64-bit application.


2 Answers

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.

like image 140
David Heffernan Avatar answered Nov 15 '22 00:11

David Heffernan


A simple way is to go in the directory : "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64" and execute the file : "vcvarsamd64.bat"

like image 22
Jérôme B Avatar answered Nov 14 '22 23:11

Jérôme B