Getting an error "Exited with code 2"

Hello,

I have recently installed CUDA 7.0 with Visual Studio 2012.

When I created new project using NVidia project type (File>New>Project>NVIDIA>CUDA 7.0) and tried to build without any manual modification in project properties, I got below error.


Error 1 error : invalid combination of type specifiers C:\apps\MVS11\VC\include\crtdefs.h 470 1 cuda1

Error 2 error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\bin\nvcc.exe” -gencode=arch=compute_20,code=“sm_20,compute_20” --use-local-env --cl-version 2012 -ccbin “C:\apps\MVS11\VC\bin” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\include" -maxrregcount=0 --machine 32 --compile -cudart static -I. -DWIN32 -DNDEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /O2 /Zi /MD " -o Release\kernel.cu.obj “E:\cudatest\cuda1\cuda1\kernel.cu”” exited with code 2. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v110\BuildCustomizations\CUDA 7.0.targets 593 9 cuda1


Please help me to solve this error.

Thanks in advance.