Jump to content
  • Advertisement
Sign in to follow this  
fredrum

Can windows DXGI be used with gcc/mingw?

This topic is 1429 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to use these windows tools as they have functionality I can't find anywhere else. But I would like to use gcc/mingw if possible as that is what I started the project with and I would like to stay as 'free' as possible.

But when I tried to compile in netbeans something that I got to build nicely with VS Express I got missing headers and when I tried to add those from other places (VS, mingw64) I got hundreds of new errors.

Should I be able to do it? Would it take a lot of work, should I just try to make libraries in VS and then use those in the gcc code?

EDIT: these are some of the includes,

#include <windows.h>
#include <atlbase.h>
#include <DXGITYPE.h>
#include <DXGI1_2.h>
#include <d3d11.h>
#include <Wincodec.h>
#include <vector>

Cheers

Share this post


Link to post
Share on other sites
Advertisement

I was able to compile a very simple d3d11 hello world application using mingw-w64, but only 32-bit. If I compiled it for 64-bit it would just crash. I didn't really look into it much further because there isn't much out there. If you search Google for Directx 11 and Mingw the first two links are to my posts on Stackoverflow and Gamedev. There just isn't any effort being put into getting D3D10/11 working in the Mingw environment. So basically either use OpenGL if possible or use Microsoft's compiler.

Share this post


Link to post
Share on other sites
Thanks for the advice. Think I'll end up just using VS to get everything working and then see how it goes...
Cheers

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!