10)To manually link SDL, go to the compiler options:
11)Then under the linker options tab, click the add button in the Link libraries field.
Then in the dialog that pops up paste:
-lmingw32 -lSDLmain -lSDL
in the text field to add the library, then click ok.