Call .cu from cpp project

Hi!
i have a one more problem.
Can’t compile my cpp project that contain .cu files.
Compiler shows next errors:

error C2065: ‘blockIdx’ : undeclared identifier
error C2065: ‘blockDim’ : undeclared identifier
error C2065: ‘threadIdx’ : undeclared identifier
error C3861: ‘__syncthreads’: identifier not found

i have included ‘cuda_runtime.h’ and ‘cutil.h’ files and paths

(CUDA_INC_PATH);(CUDA_COMMON_INC_PATH);$(CUDA_LIB_PATH);’

in project properties aslo were defined.

PS: i did all actions like in CUDA samples. Samples are working, but project is not working.

Thanks! i found decision )))
i found cppIntegration sample in SDK and it was decision of all my problems :)

Hi ,

How did you solve this problem? can you explain me?

Can you Please tell how did u solve the issue?

I am still getting such errors without using .cu files