   adding "-lmingw32 -lSDLmain -lSDL" into the parameters...
  i know that i have to, but i don't understand what it does exactly. i don't know if it's important to know or not, but i'd like to know what the things i'm using do.   
  These tell the compile to link in specific libraries, the blobs of code you use in your project. The compiler (or probably the linker) will see the -l switch, then interpret mingw32 as libmingw32.a and similar for the sdl things.   ;  cool, now i know :]   