Cannot open include file: 'cutil.h': No such file or directory Please help!!

I looked over the Project --> Properties --> C/C++ --> General --> Additional Include Directories

and I have:

“$(CUDA_INC_PATH)”;./;…/…/common/inc

and then I added:

;“C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc”

as suggested in:

http://forums.nvidia.com/lofiversion/index.php?t76942.html

I looked over the Environment Variables for CUDA_INC_PATH, and I found:

C:\CUDA\include

and then I added:

;C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc

I restarted VS 2005, but it still doesn’t work… Any ideas?

Thanks a lot!

You should change path in file that is compiled with nvcc,
right-click on file(for example template.cu ), Properties -> Configuration Properties -> Custom Build Step -> Command Line ->
(CUDA_BIN_PATH)\nvcc.exe" -ccbin "(VCInstallDir)bin” -c -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/O2,/Zi,/MT -I"(CUDA_INC_PATH)" -I./ [b]-I../../common/inc [/b]-o (ConfigurationName)$(InputName).obj $(InputFileName)

(CUDA_BIN_PATH)\nvcc.exe" -ccbin "(VCInstallDir)bin” -c -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/O2,/Zi,/MT -I"(CUDA_INC_PATH)" -I./ [b]-I"(NVSDKCUDA_ROOT)\common\inc" [/b]-o (ConfigurationName)\$(InputName).obj (InputFileName)

NVSDKCUDA_ROOT might be
C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc

SFME