c++ - How to force Visual Studio to ignore Windows SDK DirectX headers? - Stack Overflow

I'm trying to build the Mig Alley source code, and it needs an old version of DirectX. The issue i

I'm trying to build the Mig Alley source code, and it needs an old version of DirectX. The issue is that DirectX is now included with the Windows SDK, so it keeps conflicting with the old DirectX SDK I'm trying to use. I've tried excluding the path, and rearranging my include paths to have the Windows SDK first.

Does anyone have any ideas? I can't get the correct DirectX 6 SDK to be used.

Errors:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared\d3d9types.h(320): message : see declaration of '_D3DPRIMITIVETYPE'
D:\DIRX6SDK.98\include\d3dtypes.h(904,37): error C2011: '_D3DTRANSFORMSTATETYPE': 'enum' type redefinition
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared\d3d9types.h(330): message : see declaration of '_D3DTRANSFORMSTATETYPE'
D:\DIRX6SDK.98\include\d3dtypes.h(923,34): error C2011: '_D3DRENDERSTATETYPE': 'enum' type redefinition

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743756876a4501915.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信