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.