Skip to content

Instantly share code, notes, and snippets.

@Steve2955
Last active December 20, 2019 07:55
Show Gist options
  • Save Steve2955/84fb103c48ce59b6c09a9f2491afb2ef to your computer and use it in GitHub Desktop.
Save Steve2955/84fb103c48ce59b6c09a9f2491afb2ef to your computer and use it in GitHub Desktop.
MinGWcompileSDL
gcc -I C:\SDL2-2.0.10\i686-w64-mingw32\include ^
-L C:\SDL2-2.0.10\i686-w64-mingw32\lib -static ^
-o sdl ^
sdlinterf.c sdl.c ^
-lmingw32 -lSDL2main -lSDL2 -Wl,--no-undefined ^
-lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 ^
-lole32 -loleaut32 -lshell32 -lversion -luuid -lsetupapi -lhid -static-libgcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment