SDL newbie (now works)

It works linking -lmingw32 before -lsdlmain and -lsdl
Thanks to anyone who answered!