I\'ve just installed SDL 2 and I have some serious problems. This is my code:
#include
int main(int argc, char* argv[]){
SDL_Init( SDL_I
Although the accepted answer works (if you follow it exactly, or read the comments), there's one caveat: You have to follow the order of linking libraries as given
g++ 01_hello_SDL.cpp -I{add correct path here}/include/SDL2 -L{add correct path here}/lib -lmingw32 -lSDL2main -lSDL2
And if you dont want a console to run alongside the window, add -mwindows to the options