Memo‎ > ‎

Notes to use Visual Studio 2010 EXPRESS

posted Jul 1, 2013, 9:52 PM by Teng-Yok Lee   [ updated Jul 16, 2013, 10:35 PM ]
 
As I am not in school anymore, I need to find ways to build my code on Windows. My current approach is using Visual Studio 2010 Express.

In order to build 64-bit programs, I also need Windows SDK for Windows 7 and .NET 4 (http://www.microsoft.com/en-us/download/details.aspx?id=8279).

PS. Please install Windows SDL first. Otherwise, if VC 2010 x86/x64 Redistributable is newer than SDK, the installation will fail1.

Once it is installed, I can use CMake to generate the .sln and projects. Nevertheless, I need to go to Tools -> Settings -> select 'Expert Settings' in order to build the code in Release configuration2!

If CUDA is needed, please manually create a batch file vcvars64.bat. under Program Files\Microsoft Visual Studio 10.0\VC\bin\amd643. The content of this file is very simple:

CALL setenv /x64

Reference:
  1. http://support.microsoft.com/kb/2717426
  2. http://stackoverflow.com/questions/2650113/how-can-i-build-in-release-in-visual-studio-2010-c-express
  3. http://stackoverflow.com/questions/8900617/how-can-i-setup-nvcc-to-use-visual-c-express-2010-x64-from-windows-sdk-7-1
Comments