Skip to content

Instantly share code, notes, and snippets.

@zzNuAzz
Created October 21, 2020 11:52
Show Gist options
  • Save zzNuAzz/5331d15d8f0db179f3e4222de58566c9 to your computer and use it in GitHub Desktop.
Save zzNuAzz/5331d15d8f0db179f3e4222de58566c9 to your computer and use it in GitHub Desktop.
compile c++ opengl win
rm -f draw.exe
g++ -c draw.cpp -o temp.out -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include"
g++ temp.out -o draw.exe -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -static-libstdc++ -static-libgcc -lglu32 -lglut32 -lopengl32
rm -f temp.out
draw.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment