View Full Version : gl/glut.h error

02-05-2004, 05:12 AM
I am using Microsoft Visual C++. I put all the opengl header files in the same folder where I saved my project with the .lib files and the .dll files. The header files are also in C:\Program Files\MicrosoftStudio\VC98\Include\gl directory.
When I compile, I get this error message:

(5) : fatal error C1083: Cannot open include file: 'gl/glut.h': No such file or directory
Error executing cl.exe.

Can any one help me out?

02-05-2004, 08:31 AM
MS Visual C++ has everything you need in place, except glut. Go get it at www.xmission.com/~nate (http://www.xmission.com/~nate) and then you put:
1. header file ../VC98/Include/GL
2. lib file ../VC98/lib
3. dll file WINNT (or WINDOWS)/System32

I think that should do the trick. I hope you haven't overwritten anything that Visual C++ came with. The headers shouldn't be at the project directory (unless their project specific, but that's another case).

02-06-2004, 04:31 AM
Thank you very much moucard. It works fine now. Thanks a lot.