如何在MinGW中编译DirectX 11应用 [英] How to compile a DirectX 11 app in MinGW

查看:210
本文介绍了如何在MinGW中编译DirectX 11应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过了,但找不到与在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标头:

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.

或者尝试从此处使用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应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆