问题描述
我看过了,但找不到与在MinGW上使用Direct3d 10或11有关的任何材料.我该怎么办才能使工作正常? DX SDK提供的头文件中出现错误.
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.
甚至没有人甚至认为建议使用Visual Studio.
And don't anyone even think of suggesting Visual Studio.
推荐答案
似乎在这里说明了如何从MinGW的SDK工作中获取DX标头:使用Google翻译将页面翻译成英语.
It seems that here it is explained how to get DX headers from SDK work with MinGW: http://d.hatena.ne.jp/tbk/20110115/1295080728Use Google Translate to translate page to english.
或者尝试从此处使用mingw64项目中的DirectX标头: http://sourceforge.net/projects/mingw-w64 /files/您将需要下载标题和CRT源v2.0.1(r4623)(7.0 MB)".或者,您可以直接从svn检出它们: https://mingw -w64.svn.sourceforge.net/svnroot/mingw-w64/trunk/mingw-w64-headers/
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/
这篇关于如何在MinGW中编译DirectX 11应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!