We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2521

Summary: Vanilla MinGW can't compile SDL due to missing dxgi.h
Product: SDL Reporter: bennett
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: bennett, icculus
Version: 2.0.3   
Hardware: x86   
OS: Windows (All)   

Description bennett 2014-05-04 22:52:37 UTC
Since 2.01 you need minGW-w64 to compile SDL on windows, because the dxgi.h that is included in sdl_windowsvideo.c isn't included in regular minGW.org minGW. Substituting the DXGI.h from the DirectX SDK doesn't solve the problem.

If the answer is 'you need minGW-w64 to compile SDL 2.01+' which I hope it isn't for various technical reasons, then the configure script should probably tell you so. Either way, this is a bug.
Comment 1 Ryan C. Gordon 2014-05-06 04:41:48 UTC
This _should_ now be fixed in revision control (I misspoke on Twitter earlier today: we don't have MingW32 on the buildbots, just MingW64 generating 32-bit code)...naturally, without access to dxgi.h, SDL will have to report failure from SDL_DXGIGetOutputInfo(), but that's only important if you're doing Direct3D 10 or 11 stuff.

Resolving this bug, but please let me know if this gives you any further problems, as I don't have a Mingw32 install to verify this fix.

--ryan.