Compiling OpenGL Programs on Lab Machines (e.g. MLH 303):

Suggested Command Line to Compile on Lab Machines:

gcc -o myProg myProg.c -I /usr/X11R6/include/ -L /usr/X11R6/lib/ -lglut -lGL -lGLU -lX11 -lXmu -lXi -lm

You should just be able to copy/paste. The only changes you need to make are:


Last Modified: Thursday, September 2, 2004

Chris Wyman (cwyman@cs.uiowa.edu)