[Help] Error: Can't execute "cl.exe"


I’m new to CUDA and I’m having some problems compiling a code.
The code compiles without a problem at my university but when I try to compile it at home I get

“>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 4.0.targets(145,9): error MSB6003: 指定されたタスク実行可能ファイル “cl.exe” を実行できませんでした。指定されたファイルが見つかりません。”
Which translates to “Could not execute the executable “cl.exe”. Failed to find file”.

I’ve checked that cl.exe does exist under “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin”.

I installed VS2010 (Professional) and CUDA as instructed and checked the paths and so forth.
Then, I uninstalled VS2010 and installed VC++ 2010 Express and get the same problem but with a different error code TRK0005.

Has anyone encountered this problem and/or can give me some help in resolving this?

OS: Windows 7 64-bit
GPU: GTX 460
CUDA Ver: 4.0

Thanks for all the help.

Did You check the system ‘PATH’ variable? Does it contain ‘C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin’ directory?