Archived

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

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

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