Static-linking of SDL2 libraries

It’s not necessary to recompile the library, SDL2 is given with static-link library named “libSDL2.a” on the folder “SDL2-2.0.0\i686-w64-mingw32\lib\”. Just be sure to add these options to the linker : “-lmingw32 -lSDL2main -lSDL2 -mwindows -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -static-libgcc” on Code:Blocks at “Project / Build Options… … Read more