Skip to content

Instantly share code, notes, and snippets.

@MarioLiebisch
Created November 30, 2016 11:32
Show Gist options
  • Save MarioLiebisch/268fd4c84d9dac4a92edd3d70feca630 to your computer and use it in GitHub Desktop.
Save MarioLiebisch/268fd4c84d9dac4a92edd3d70feca630 to your computer and use it in GitHub Desktop.
A quick and simple batch file to run small tests using SFML. Just execute `run <name>` where `<name>´ is the base name of your cpp file.
@echo off
cls
g++ -o %1.exe %1.cpp -std=c++11 -static-libstdc++ -static-libgcc -DSFML_STATIC -lsfml-network-s -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lwinmm -lopengl32 -lgdi32 -ljpeg -lws2_32 && %1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment