In my program I have #include <GL/glut.h> like this,but when compiling my program,it have error "can not open file GL/glut.h"

In my program I have #include <GL/glut.h> like this,but when compiling my program,it have error "can not open file GL/glut.h"

Thank you for your answer.




Answer this question

In my program I have #include <GL/glut.h> like this,but when compiling my program,it have error "can not open file GL/glut.h"

  • Toni Petrina

    Hey

    i tried those things u said, and i cant get my program to work. I take a course and my program works fine there, but when i take it home and try to run it here it doesnt work. I have a redistributable version on Visual Studio 2005, and they use 2005 there to. can anyone help me


  • Karl Tarbet

    Seams that you have a code that uses the glut library (what ever this is). I just used google and found this link.

    http://www.xmission.com/~nate/glut.html



  • RajeshAki

    Make sure you've got the header file loaded in the right directory. Then use #include <glut.h> without the GL. I use Visual Studio 2005 to write OpenGL code for a class, and that works for me every time.

  • In my program I have #include <GL/glut.h> like this,but when compiling my program,it have error "can not open file GL/glut.h"