Hi. I am learning SDL, and I can't get it to work. I am using the Dev-C++ 4.01 IDE and the MinGW compiler. When I link to -lsdl and -lsdlmain and do this:
#include <SDL\SDL.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
return 0;
}
It doesn't compile and the linker says:
Undefined reference to `WinMain@16'