stuck w/ sdl..

Started by
1 comment, last by Arunas 18 years, 5 months ago
While linking this #include <SDL.h> int main(int argc, char *argv[]) { return 0; } i get such an error [Linker error] undefined reference to `WinMain@16' whether I compile it as an console or as a windows application. I use Dev-C++ IDE under winxp.
Advertisement
You will need to link in (those are L's not I's):
-lsdlmain-lsdl-lmingw32


For more resources on SDL and guides for getting it setup, take a look at this thread.
Thank you. It`m sorry for being that lame.

This topic is closed to new replies.

Advertisement