I have just installed redhat 7.1 on my desktop. And the GL dir is found in the /usr/include. But when i try to compile the sample program, the error message said "undefined reference on “glColor”
"undefined reference on “glVertex3f” …
It works now! So it means I need to compile all file by such a “long” command: “gcc -o file file.c -L/usr/X11R6/lib -lGL -lGLU -lglut”?
Could i do some way shorter?