- Setup a mingw64 compiler
- Add the SDL2 library into the same directory as main.cpp (this SDL2 library can also be used: https://github.com/Jackboxx/SDL2_extras)
- Copy the SDL2.dll file into the same directory as main.cpp
- Compile with g++ main.cpp -ISDL2\include -LSDL2\lib -lmingw32 -lSDL2main -lSDL2 -o main.exe
This repository was archived by the owner on May 12, 2026. It is now read-only.