How to compile DirectX 11 application in MinGW

I looked and I can not find material related to using Direct3d 10 or 11 with MinGW. What should I do to make everything work? I am getting errors in the header files provided by the DX SDK.

And no one thinks to offer Visual Studio.

+6
source share
2 answers

It looks like this explains how to get DX headers from the MinGW SDK: http://d.hatena.ne.jp/tbk/20110115/1295080728 Use Google Translate to translate the page into English.

Alternatively, try using DirectX headers from the mingw64 project: http://sourceforge.net/projects/mingw-w64/files/ You will need to "Download the headers and source of CRT version 2.0 (r4623) (7.0 MB)." Or you can check them directly from svn: https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/trunk/mingw-w64-headers/

+5
source

Source: https://habr.com/ru/post/906832/


All Articles