GLUT Error


I am running a program which I found at It is compiling perfectly, but when I run the program it is giving the following error.

Xlib: extension “XFree86-DRI” missing on display “:0.0”.
GLUT: Warning in a.out: The following is a new check for GLUT 3.0; update your code.
GLUT: Fatal Error in a.out: redisplay needed for window 1, but no display callback.

Can anybody tell me how to go around this problem.

Thanking you in advance

not an expert.but to my knowledge it looks like your window 1 needs a function call glutDisplayFunc(&display window1)

display window1()
if you have light settings;
your draw function etcc…
something like that.

check your main function for glutDisplayFunc
if the function is that check the function.

I’m sure there are many people better than me to explain.