PDA

View Full Version : Compiling OpenGL under linux



10-08-2000, 02:17 PM
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 ?

john
10-08-2000, 03:52 PM
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