Compiling OpenGL under linux

Hi,

I’m using GLUT library in Red Hat Linux 6.0 but I don’t know how to compile it under gcc.
I know that Mesa is already installed but during the compilation some -l<stuff> is needed to link the necessary libraries.
Can you help me ?

the libraries you need are in /usr/lib

so you need to add:

-I/usr/include -L/usr/lib -lgl -lglu -lglut

to your compiler. you should already have the first two, btw =) it’s the last three you need.

cheers
John