Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


SDL and MinGW (Search didn't turn up useful answer)

This topic is 5526 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

Hi everyone, I''m just starting to program graphical games and started using SDL. Now here''s the problem: I want to use MinGW to compile my programs (I have Visual C++ 6 too, but don''t want to use it), but I can''t find anywhere a tutorial on how to compile MinGW using SDL. I''m not using Msys, because I like to keep everything really minimal, so I know that it''s a little different than if I had msys. Where do I put the SDL folder? What do I set for compile? Should I make a makefile? Thanks, sorry for sounding all nooby, but I''m stumped about this. Thanks. Bill

Share this post

Link to post
Share on other sites
Extract the include and lib folders to where you installed MinGW.

To compile a program from the commandline, just add ''-lsdl'' to the arguments you''d pass gcc/g++ normally. In Dev-C++ go to project options/parameters/linker and write ''-lsdl''.

You may want to copy sdl.dll from the lib directory to your windows system directory.

Share this post

Link to post
Share on other sites
Go to http://cone3d.gamedev.net and look at their first sdl tutorial. It has what you need.

It is foolish for a wise man to be silent, but wise for a fool.


All your Windows base are belong to Linux.
All your GameDev.net base are belong to Myopic Rhino

Share this post

Link to post
Share on other sites

  • 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!