#includeGL/glut.h (No such file or directory)

fatal error C1083: Cannot open include file: ‘GL/glut.h’: No such file or directory

ive just installed Visual C++ and im getting this error message when i use the library #include<GL/glut.h>

you need to install it. It does not comes with windows or VC6.

download it from http://www.xmission.com/~nate/glut.html

don’t forget to link your project with glut32.lib

VC++ is not shipped with glut, you have to download it. Just as the error say’s the compiler can not file that file, since it is not installed.

The GLUT for windows website is run by Nate Robins.

I have a link to his site on my website.
http://www.angelfire.com/linux/nexusone/

Go there and download the glut files and install them.

Originally posted by tuffy:
[b]fatal error C1083: Cannot open include file: ‘GL/glut.h’: No such file or directory

ive just installed Visual C++ and im getting this error message when i use the library #include<GL/glut.h>[/b]

hey, I beat you to that by about a second

You guys are funny.

Originally posted by oliii:
hey, I beat you to that by about a second

hi
i am also facing the same problems.
ur replies could not help me getting it solved.
please be more clear as how to do it.
thanks in advance…

Are you sure that you are placing glut.h in the $VC6DIR/include/gl/ directory? (the $VC6DIR just means that replace it with whatever the path is to your vc6 folder. You may have glut32.dll placed, but make sure that the glut.h is in that folder. You MAY be putting it in the include/ directory instead of the include/gl/ directory.

  • Halcyon