I am trying to compile an OpenGL program with glut using gcc but I am having linking problems.
I found the include files in /usr/include/X11/mesa/GL and I guess the lib files is located in /usr/X11R6/lib.
So I tried the following line below:
gcc xxx.c -I/usr/include/X11/mesa/GL -L/usr/X11R6/lib -lglut -lGLU -lGL
The compiler is telling me that he can not find GLU or GL. (It does not complain about glut...)
What is going on ?
Is it lacking of lib files ?
It is important to say that I just find the libglut.so in /usr/X11R6/lib .
Is it supposed to have libgl or libglu too ?