A simple batch script that installs OpenGL Utility Toolkit (GLUT) over CodeBlocks.
- Run
installglut.bat
If the script fails for any reason, install manually:
- Copy
glut.h
to CodeBlocks\MinGW\include\GL folder. - Copy
glut32.lib
to CodeBlocks\MinGW\lib folder. - Copy
glut32.dll
to CodeBlocks\MinGW\bin folder.
- Add
#include <windows.h>
(make sure its the first declaration).
If you encounter the following message:
- Paste a copy of
glut32.dll
beside your executable (.exe) usually found in {ProjectName}\bin\Debug.