PDA

View Full Version : cannot open 'GL/glut.h'



11-12-2002, 03:08 AM
I am having trouble starting a simple program, using glut, I have included
opengl32.lib, glut32.lib, glu32.lib, and glui32.lib in my project, and my include statements are as follows
#include <GL/glut.h>
#include <stdlib.h>
The Visual Studio C++ compiler says it "cannot open file: 'GL/glut.h': No such file or directory"
Any Help?
Thanks in advance

11-12-2002, 03:21 AM
Hi, did you install GLUT? If not go to http://www.xmission.com/~nate/glut.html and download the [glut-3.7.6-bin.zip (117 KB)] file. Open the zip file and extract:
Glut32.dll to c:\windows\system
Glut32.lib to \vc\lib
Glut.h to \vc\include\Gl
When you extract the files uncheck "Use folder names" and then your ready to go.

[aheijde]