SDL Gamer

Search this site

SDLgamer Menu‎ > ‎

Lesson 2. Setup SDL in Dev-C++

This lesson is very important , because many people failed in here.
Please follow the steps to setup SDL in Dev-C++.

Step 1.
Open Dev-C++ -> Tools -> Compiler Options
Check the box and add in these parameters exactly :
-lmingw32 -lSDLmain -lSDL

That's "dash L" not "dash one".   You can just copy & paste in your Compiler Options.
You'll get "Linker Error" if you fail in this step.




Step 2.
Select "Directories" & assign the bin file directory of SDL for it.


Step 3.
Select "Libraries" & assign the lib file
directory of SDL for it.



Step 4.
Select "C Includes" & assign the h file
directory of SDL for it.


Step 5.

Select "C++ Includes" & assign the h file
directory of SDL for it.


Click on Ok , then the setup is done !

Comments