Buidling simple applications under OSX is similar to building them under linux with the following changes: The glut.h file is stored under a GLUT directory so the include statement in your application should be #include The compiler options should be -framework OpenGL -framework GLUT -framework Foundation Thus a very simple compile would be gcc simple.c -framework OpenGL -framework GLUT -framework Foundation -o simple Make sure that the three frameworks have been installed. If you use the Xcode interface, just add the two frameworks from the add menu. See Kuehne and Sullivan, OpenGL Programming on the Mac, Addison-Wesley, for information about using the various version of OpenGL available on the Mac and on using other window interfaces.