1
\$\begingroup\$

I have downloaded the latest Mingw toolchain from mingw.org, but it seems DirectX headers are missing. Where can I get those?

I assume there are open source compatibility headers out there, in particular for ddraw.h, which is deprecated by Microsoft.

\$\endgroup\$
6
  • 2
    \$\begingroup\$ Is there any reason why you are using Mingw instead of Visual Studio Express editions? You'll be able to get a lot more help and support that way, and most would agree that it's by far the best free IDE for Windows. \$\endgroup\$ Jan 2, 2011 at 21:51
  • \$\begingroup\$ Issues of IDE bigotry aside, it is an uphill battle to compile a "platform" library with something other than the standard platform compiler (compare trying to compile a Linux kernel module with ICC rather than GCC). At best you can hope for stuff from WINE and other interop projects, because Microsoft has zero interest in supporting your compiler configuration. \$\endgroup\$
    – user744
    Jan 2, 2011 at 23:16
  • \$\begingroup\$ That's odd, I have directX headers in my MinGW, and I don't remember adding them separately. Granted, my MinGW install is quite old, but when and why would they stop supplying those headers? \$\endgroup\$
    – Luker
    Jan 3, 2011 at 6:22
  • 2
    \$\begingroup\$ I am interested in a very small subset of all the available DirectX methods, so I think any compiler will be fine. I also use LoadLibrary() and GetProcAdress() whenever I can, it helps. \$\endgroup\$ Jan 3, 2011 at 9:14
  • 1
    \$\begingroup\$ @DarioOO, that was, what four years ago? I don't even remember clearly what I was up to. :) \$\endgroup\$ Jan 23, 2015 at 19:17

3 Answers 3

1
\$\begingroup\$

The MAME development site recommends using these headers from WINE; the particular zip they link is from a year ago, so you may be able to extract more recent (and presumably, somehow better) headers from WINE itself.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ It seems the Mame site has something to avoid deep linking, so first click the Mame site before you try to download the headers. \$\endgroup\$ Jan 3, 2011 at 9:16
1
\$\begingroup\$

Are you sure you have installed mingw's dist of the win32 api? I do believe the dx headers are part of that package. Do note that dx9 is the latest dx version available with mingw and that it is not complete (if you're hoping to use d3d, however, you should be good to go).

\$\endgroup\$
1
\$\begingroup\$

You won't find ddraw in this one, but google dx9mgw for the directx 9 ones. Then, when you build your release, be sure to disable strict aliasing by either not doing speed optimization above -0 or -1 or by disabling strict aliasing optimizations with a compiler directive. Or I guess update the headers if you want to.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .