For I have only found few explanations about how to use the GLUT library for OpenGL programming with Visual Studio 2008, I’ll give it a try myself:
- Download the GLUT library from
- Unzip it
- glut.h – needs to be copied to the include/gl directory within the Microsoft SDK installation dir.
- glut32.lib – at the same place, but in the lib subdir
- glut32.dll – put this in the System32 dir.
Now, in Visual Studio create a new project as console application. Then, open the project properties, go to the Linker tab. Under Object/Library modules add
opengl32.lib glut32.lib glu32.lib
<glglut.h></gl> in your source and you’re ready to go!