# gl/glut.h error

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?

MS Visual C++ has everything you need in place, except glut. Go get it at 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).

Thank you very much moucard. It works fine now. Thanks a lot.