I'm having major problems trying to compile an OpenGL program in Linux using gcc .
my command line is ..
gcc -o myprog file.c -lGL -lGLU -lglut -I/usr/X11R6/include -L/usr/X11R6/lib
but the thingie doesnt compile. Just gives me a LOT of undefined references from all those libraries (libGL.so, libglut.so, libGLU.so) undefined references to a hell lotta X<functions> . Someone PLEASE help me out