How to Compile a 64-Bit Application Using Visual C++ 2010 Express

How to compile a 64-bit application using Visual C++ 2010 Express?

Here are step by step instructions:

  1. Download and install the Windows Software Development Kit version 7.1. Visual C++ 2010 Express does not include a 64 bit compiler, but the SDK does. A link to the SDK: http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx
  2. Change your project configuration. Go to Properties of your project. On the top of the dialog box there will be a "Configuration" drop-down menu. Make sure that selects "All Configurations." There will also be a "Platform" drop-down that will read "Win32." Finally on the right there is a "Configuration Manager" button - press it. In the dialog that comes up, find your project, hit the Platform drop-down, select New, then select x64. Now change the "Active solution platform" drop-down menu to "x64." When you return to the Properties dialog box, the "Platform" drop-down should now read "x64."
  3. Finally, change your toolset. In the Properties menu of your project, under Configuration Properties | General, change Platform Toolset from "v100" to "Windows7.1SDK".

These steps have worked for me, anyway. Some more details on step 2 can be found in a reference from Microsoft that a previous poster mentioned: http://msdn.microsoft.com/en-us/library/9yb4317s.aspx.

Compile 64 bit application in MSVC 2010

It is a hack to work around Express edition limitations, somewhat south of its license restrictions. When you have the paid edition, you simply add the x64 configuration to get a 64-bit build of your app. Use Build + Configuration manager, upper right combobox box labeled "Active Solution Platform". Pick "New" from that combobox. Pick "x64" in the popup. Done.

If "x64" doesn't appear then re-run Setup and select the option to install the 64-bit compilers.

64-bit build on microsoft visual c++ express 2010

finally got this to work by uninstalling everything and reinstalling in the following order:

  1. VS2010 C++ Express (in my case)
  2. SDK 7.1
  3. VS2010 SP1
  4. SP1 Compiler patch KB2519277

once this is done, make sure to change the platform toolset to the windows sdk under project properties->configuration properties->general

VS2010: Compile a C++ Project in 64 bit

Visual C++ Express does not include 64-bit tools by default. You can install Windows Software Development Kit (SDK) to get them.

For details, see: http://msdn.microsoft.com/en-us/library/9yb4317s(v=vs.100).aspx

How to compile x64 with Visual Basic 2010 Express Edition

I don't have Visual Basic 2010 Express installed to check, but if you go to the project properties and view the Compile tab, do you have an "Advanced Compile Options" button? Click that and then look at the "Target CPU" drop down. By default it should be "Any CPU", which means that .NET will run as x86 or x64 depending on the OS that the app is running on.

Since .NET code is not native code, the target platform doesn't matter as much as it would with a C++ project. The recommendations I've seen suggest targeting x86 will all your .NET applications unless you have a specific reason that you need the extra memory addressing that you'd get with an x64 application.

Visual C++ 2010 Express x64 assembly

Visual Studio 2010 Visual C++ Express Edition does not include support for x64 compilation.

How to change an old Microsoft Visual C# 2010 express 32bit project to 64bit

See my answer here, and the comments below it (if you can't find "Configuration Manager").

Tools -> Options -> check the box in the bottom left -> Projects and Solutions -> General -> Show advanced build configurations.

64-bit compiler available in Visual Studio Express 2012 or Express 2013?

I just posted something about this here :

64bit compilation with visual studio express 2013

TL;DR : Basj is right, you just have to call vcvarsall.bat x86_amd64

How to make Msvc++ express 2010 application compatible to 64bit machines?

32-bit applications will work on Win64 OS's.

There are some special things you might need to do if your application needs to access the 'true' system32 directory or certain registry keys. However, the vast majority of 32-bit applications don't need to deal with that (some that might include file managers or registry editors). In fact, the redirection was specifically put in place by Microsoft so that the redirections would help the application compatibility.

However, if your application requires a special device driver - that would have to be built for a 64-bit platform (again, this is pretty rare).

You should test your application on a 64-bit platform, but the expectation is that in general it should just work.



Related Topics



Leave a reply



Submit