To compile SDL application under mingw32, compil it with
-Dmain=SDL_main (this is done by default)
and int main() should be int main(int, char*[]), not int main(void);
and link it with
-lSDLmain -mingw32
FAQОбновил
запись о компиляции переимплементаций Брудвара :)