mohdshamilshafi / cudpp

Automatically exported from code.google.com/p/cudpp
Other
0 stars 0 forks source link

Fail to compile on Win7 SP1 with VS 2010 #114

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download cudpp 2.0 
2. Standard cmake config procedure
3. Build solution 

2>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\objbase.h(239): error : 
identifier "IUnknown" is undefined

Original issue reported on code.google.com by daniel.e...@gmail.com on 5 Apr 2012 at 5:56

GoogleCodeExporter commented 8 years ago
There seems to be a simple temporary fix: 
On the top of the file cuda_util.h I added the lines
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#endif
This resolved the problem for me now. However it should be addressed in a clean 
way.
A related post is http://forums.nvidia.com/index.php?showtopic=67822

Original comment by daniel.e...@gmail.com on 5 Apr 2012 at 7:55

GoogleCodeExporter commented 8 years ago
Strange that none of us have ever seen this.  I develop on Win7.

Original comment by harr...@gmail.com on 10 Sep 2012 at 10:09