A simple batch script that installs OpenGL Utility Toolkit (GLUT) over CodeBlocks.
- Run
installglut.bat
If you want to install it for MSVC you need to change properly variables in installglut-msvc.bat
and then run it with administrator privileges.
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.
for MSVC checkout: https://blog.albertarmea.com/post/40667525183/installing-glut-on-windows
- 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.