Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile for x64 with Visual Studio?

Question: Assume a C++ hello world program, non .NET. With Visual Studio 2005/2008/2010, how can I compile a 64-Bit application ? I have a 64 Bit Windows, but by default, VS seems to compile 32 bit executables...

On Linux with g++, I can use -m32 and -m64, but how can I compile a 64 bit solution with Windows ? Is it even possible with 2005 ? Or does one need 2008 or even 2010 Beta, or even some x64 SDK ?

like image 654
Stefan Steiger Avatar asked Feb 16 '10 13:02

Stefan Steiger


1 Answers

There is a step-by-step instructions by Microsoft: http://msdn.microsoft.com/en-us/library/9yb4317s.aspx

like image 194
Igor Korkhov Avatar answered Nov 04 '22 10:11

Igor Korkhov