nvcc fatal: Don't know what to do with 'Year'

Hi there,

When trying to compile my .cu files I’m getting this strange error on compilation:

1>Compiling with CUDA Build Rule…
1>“C:\CUDA\bin\nvcc.exe” -arch sm_10 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin” -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MT " -I"C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc" -maxrregcount=32 --compile -o “registration++.dir\Debug\test.cu.obj” “c:\Users\Matt\Documents\registration\src\test.cu”
1>nvcc fatal : Don’t know what to do with ‘Year’

Anyone know how I can solve this? Thanks in advance.

Ah, so the issue was the include switch -I"C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc"

It seems nvcc can’t deal with using '' at the end of an include path, removing that to this: -I"C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc" works fine

I have similar problem:

nvcc fatal   : Don't know what to do with 'Computing'

but I have it even with SDK examples :unsure:

What to do?

I tried to reinstall SDK, but it hasn’t helped

This error disappeared when I reinstall toolkit and SDK