0

Possible Duplicate:
How to compile a 64-bit application using Visual C++ 2010 Express?
How can I compile 64 bit with visual c++ 2008

I am trying to compile an application that contains CUDA code. I have visual c++ 2008 express version (the free version) on my computer. To be able to use the cuda compiler I followed the steps from here, here and here. The cuda files (with *.cu extension) now compile fine, but the other normal C++ files are using 32 bit because at the drop box on the top (configuration manager) of IDE, it says Win32. There is no option to make it Win64. What should I do to tell configuration manager to use 64 bit. Note that I have 64 bit compilation tools now that I installed the Windows SDK.

Community
  • 1
  • 1
MetallicPriest
  • 29,191
  • 52
  • 200
  • 356

3 Answers3

3

Visual Studio Express 2008 doesn't ship with the x64 compiler, that's reserved for the pro versions.

The command-line version is included in the Windows SDK though, which is available for free. You can find some information about adding the 64bit compiler to Visual Studio Express on the internet, but it's a big hack. Just a quick search on google revealed for example this blog-entry: https://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/

Tobias Schlegel
  • 3,970
  • 18
  • 22
1

http://msdn.microsoft.com/en-us/library/9yb4317s%28v=vs.90%29.aspx

"64-bit tools are not available on Visual C++ Express by default. To enable 64-bit tools on Visual C++ Express, install the Windows Software Development Kit (SDK) in addition to Visual C++ Express. Otherwise, an error occurs when you attempt to configure a project to target a 64-bit platform using Visual C++ Express."

Roger Dahl
  • 15,132
  • 8
  • 62
  • 82
-1

Right click the solution -> Active solution platform -> New... -> x64 (under "Type or select the new platform:)

Ed S.
  • 122,712
  • 22
  • 185
  • 265