When compiling OpenGL programs, you need to link several libraries and specify their paths. Here's the compile line for compiling programs on the SGIs under IRIX: cc prog.c -o prog -I/usr/local/include -L/usr/local/lib -lglut_n32 -lGL -lGLU -lm -lXmu -lX11 where 'prog.c' is your source code and 'prog' is the name of the executable. Here's the compile line for compiling programs on the linux machines: cc prog.c -o prog -L/usr/lib -L/usr/X11R6/lib -lGL -lGLU -lglut -lm with 'prog.c' and 'prog' having the same meaning as above. For both of the above, you may be able to exclude linking some libraries (such as glut_n32 if you're not making glut calls). Your environment variables may also be set such that you don't have to specify the extra include (-I) and linking (-L) paths. You may also prefer to use gcc instead of cc. For all of the programs you submit, please specify the exact compilation command so that I can compile and test your code.