NVCC won't compile WinXP64 - CL.EXE compiler not supported

NVCC won’t compile on WinXP64 using the x64 compiler, the error says:

Building main.cu …
nvcc fatal : nvcc cannot find a supported cl version. Only MSVC 8.0 and MSVC 9
.0 are supported

But I am using the AMD64 version of CL for MSVC 9.0 (Visual Studio Express 2008), so why doesn’t it work? CL version is:

Microsoft ® C/C++ Optimizing Compiler Version 15.00.30729.01 for x64
Copyright © Microsoft Corporation. All rights reserved.

usage: cl [ option… ] filename… [ /link linkoption… ]

If I try to use the 32bit version of CL.EXE to build an x64 as people suggest on this website, I get this error:

nvcc fatal : Visual Studio configuration file ‘(null)’ could not be found fo
installation at 'D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin/…/

I get the same error above trying to compile x64 in Visual Studio.

Anyone know how to fix this issue? Just trying to compile CU programs on AMD64 platforms… Thanks

I actually can compile 32bit now no problem, but no x64 executables.

It seems that the only way to get x64 support for CUDA is to install Visual Studio 2008 Pro…

After adding the 64bit libraries the CUDA SDK projects compile right away.

No Visual Studio Express Support…

Problem resolved.

Express doesn’t support x86-64 compilation, as far as I know.