Archived

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

BillLeeLee

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

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.

Matthew
WebMaster
www.Matt-Land.com

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