- Download
MingW
installer from Sourceforge - Install
MingW
to your prefer path and components needed- Mine is basic setup ->
mingw32-base
+mingw32-gcc-g++
->GDB
andMake
if needed
- Mine is basic setup ->
- Download zip file from here
- Copy
glut.h
toincludes\
,glut32.lib
tolib\
,glut32.dll
to bothWindows\System32
andWindows\SysWOW64
- When compile, run command
gcc your_program.c -lglut32 -lglu32 -lopengl32
https://w3.cs.jmu.edu/bernstdh/web/common/help/cpp_mingw-glut-setup.php