GLUT problem

I have just installed the new version of RED HAT linux 7.0
when i tried to run my program using GLUT i got unrefrenced funtion error on funtions such as glutInit()…
I included file <GL/GLUT.h>
I dont know what is wrong
Please help me out

Sounds like you need to link in the glut library:

gcc … -lglut

when i used the -lglut
the gcc compiler gave a lot of errors of undefined refrence
Can anyone help me?

If your are using GLUT from Mesa do you only have to link with -lglut. The original GLUT needs extra libs like -lX11. See the makefiles or search this forum.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.