View Full Version : 'gl/glut.h' error HELP
04-17-2001, 09:34 AM
i am trying install glut on my computer.
I have ms c++ 6.0 and open gl. I have attempted to include all the glut header files but I still receive this error when I compile:
Cannot open include file: 'gl/glut.h': No such file or directory
04-17-2001, 09:38 AM
There are no GL/glut.h
There are GL/gl.h, GL/glu.h and GL/glaux.h
04-17-2001, 10:17 AM
You'll have to download the glut headers and libraries. There's a link to them somewhere from this site. Put the glut.h in your VC98/include/gl directory and the libraries into the VC98/lib directoctory.
Take a look at
04-17-2001, 08:09 PM
first you'll have to download the glut headers and libraries,and put it in the vc98 folder, just like Deiussum said.
then,if u use Window, then, try to go to C:\windows\system and try to find glut32.dll to make sure it is there.
then, when you do a new project in visual c++, do this:-
1)go to Project
2)go to Settings
3)go to "C/C++" tab
4)check the Generate Browse Info box
5)go to "Link" tab
6)at the object/library modules:, you insert the word "glut32.lib" as the first thing inside the text field.
try to include this at the top of your file:-
well..hope this might help you..
04-18-2001, 08:09 AM
Technically, with VC++ and the latest glut header, you don't need to add the library to the linker settings. The header has a line like
#pragma comment("lib", "glut32.lib")
Which basically is the same as adding glut32.lib to the linker settings.
I should add that at least knowing about the link tab is a good thing, though. Eventually you may get away from glut and have to add opengl32.lib and glu32.lib to those settings. When you do, be sure to do it for both the debug and release builds as each one keeps track of it's own compiler/linker settings.
[This message has been edited by Deiussum (edited 04-18-2001).]
04-19-2001, 11:29 AM
There's about 3 files that you need in order to use the glut functions within your program.
1. glut32.dll (in your Windows system directory)
2. glut32.lib (in your programming library directory)
3. glut.h (where your programming library stores gl.h and glu.h)
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.