Using OpenGL in MinGW with
Posted Oct 7 2015
Updated Oct 8 2015
Monty we do not have MinGW set up on Windows, however it is
simple to install on your home computer.
If you do not have freeglut already installed:
freeglut-MinGW-3.0.0-1.mp.zip file from http://www.transmissionzero.co.uk/software/freeglut-devel/
- Extract the files where you will see three folders: lib, include and bin
the include and lib folders directly into your MinGW
folder on C:
- lib files:
- include files:
- dll file: C:\Windows\SysWOW64
Use the cmd window with the appropriate flags:
ie. g++ -o test OpenGL_Step1_Window.cpp -I"C:\MinGW\freeglut\include" -L"C:\MinGW\freeglut\lib" -lfreeglut -lopengl32
then type test.exe to run the program
Alternatively you could use a make file.
If you would like a sample test file and make file click here.