CUDA can't find crtdefs.h

SOLVED! I had installed CUDA x64, but here at work we only had VS for x86, so I uninstalled CUDA and installed the x86 version. Everything ok now.

Hi.

I’m trying to compile an example from the lecture: http://heim.ifi.uio.no/~knutm/geilo2008/seland.pdf
The example is on page 21.

When I do this, from the cmd using: nvcc testfile.cu, I get the error:

c:\cuda\include\host_config(115): fatal error C1083: Cannot open include file ‘crtdefs.h’: No such file or directory

The file itself is in:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include

Can anyone please help? Thank you.

I am also facing the same error. I have MS VS/VC++ installed and path included in the bash script.

I will appreciate any help to resolve this error. I am working on 64-bit Win 7.

Thanks

Shadab

I’m also facing the same issue. VSTS 2008 on a Vista64. Thanks.

got also vista64, had to modify nvcc.profile this way:

INCLUDES += “-I$(TOP)/include” “-I$(TOP)/include/cudart” “-IC:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include” $(SPACE)

Had the same problem and this resolved it for me.

Had the same problem and this resolved it for me.

sorry I know this is old but I want to know who to change the nvcc.profile, I know this may be very elementary but I don’t know how to open the file and add the INCLUDES += “-I$(TOP)/include” “-I$(TOP)/include/cudart” “-IC:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include” $(SPACE)
thanks