How to compile a DirectX 11 app in MinGW

会有一股神秘感。 提交于 2019-11-27 03:24:19

问题


I've looked, and I can't find any material relating to using Direct3d 10 or 11 with MinGW. What do I have to do to get things working? I'm getting errors in the header files supplied by the DX SDK.

And don't anyone even think of suggesting Visual Studio.


回答1:


It seems that here it is explained how to get DX headers from SDK work with MinGW: http://d.hatena.ne.jp/tbk/20110115/1295080728 Use Google Translate to translate page to english.

Alternatively try using DirectX headers from mingw64 project from here: http://sourceforge.net/projects/mingw-w64/files/ You'll need "Download headers and CRT source v2.0.1 (r4623) (7.0 MB)". Or you can check out them directly from svn: https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/trunk/mingw-w64-headers/




回答2:


May be this is answer.

http://www.gamedev.net/topic/619239-directx-11-mingw-w64/page_view_findpost_p_4908066



来源:https://stackoverflow.com/questions/9000485/how-to-compile-a-directx-11-app-in-mingw

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!