MinGW install with GCC-G++ :
Download FreeGlut version 2.8 +
https://www.transmissionzero.co.uk/files/software/development/GLUT/older/
Compile the examples using e.g :
gcc -o stars.exe -Wall stars.c glut32.lib -lopengl32 -lglu32 -lfreeglut
https://www.opengl.org/archives/resources/code/samples/glut_examples/examples/examples.html