error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup, but this time it’s NOT a Windows/Console problem!
SDL_main.h is included automatically from SDL.h, so you always get the nasty #define. Just write: #include <SDL.h> #undef main And it should work fine