Visual Studio Express 2008 and 64 bit compiles on Win7 How to fix Visual Studio Express 64 bit compi

After setting up Visual Studio Express to do 64 bit compiles by installing the Windows SDK and following the instructions here:…64-bit-targets/

I was still receiving the error:

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

To resolve this error, I had to copy the file:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat


C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat

Note the name change from vcvars64.bat to vcvarsamd64.bat.

Please NVIDIA, resolve this dependency error by simply checking the first path above before bailing out with the error. This issue took me a week to figure out and I could not find this solution on the forums.


That’s a shame that it’s so fiddly to get working. I’ve been compiling/using 64 bit binaries on VS-professional / Win7 for a while & it worked straight off the bat, so I guess it’s a caveat of using the express edition. It’s a way of motivating you into getting the pro version ;)


I believe you can download and try MSVS Pro for 90 days free.

Thanks for the post, I had to install 32 bit w7 because I couldn’t get this working! I’m going to teach my friend CUDA soon, he’ll be thrilled to know it will work on his win 7 x64 machine.