Which Windows SDK are you using? The one that came with VS2k5 or later? As a rule of thumb, the latest DirectX SDK requires the latest Windows SDK. This is platform specific programming here, so I don't see how you could implicate Qt in this case.
Which Windows SDK are you using? The one that came with VS2k5 or later? As a rule of thumb, the latest DirectX SDK requires the latest Windows SDK. This is platform specific programming here, so I don't see how you could implicate Qt in this case.
I'm sorry, I didn't mean to imply that it was Qt's fault.
It's just if you comment out any of the three header inclusions, it compiles. So there seems to be a conflict somewhere. And I'm not able to figure it out. I don't understand the compilation errors.
I get the same errors whether it's the d3d10.h from Windows SDK v7.1 or from DirectX SDK (June 2010).
It seems that Qt is defining something which is also defined in the d3d include files. Since you can define stuff twice, it causes the errors you describe.
You should be able to fix this by recompiling Qt and specifying a namespace for Qt.
Bookmarks