I’m using the command prompt to try and run examples from CUDA by Example. I’m using nvcc 4.0 and the VS 2010 compiler and keep getting the following error:
Microsoft SDKs\Windows\v7.0A\include\objbase.h<239>: error: identifier “IUnknown” is undefined
As well as the following warning:
Microsoft SDKs\Windows\v7.0A\include\objbase.h<239>: warning: expression has no effect
Any help with this issue would be greatly appreciated.
Also, as a breif side-question, how do I change my default nvcc compiler from 3.2 to 4.0 in command prompt?
Hello there… you cannot use directly VC++ 2010 to compile CUDA kernel, you should use VC++ 2008 compiler. This restriction is applied to CUDA 3.2 and CUDA 4.0 (if I remember correctly).