MacOS 编译 OpenGL
29 Mar 2013包含头文件
#include <gl.h> --> #include <OpenGL/gl.h>
#include <glu.h> --> #include <OpenGL/glu.h>
#include <glut.h> --> #include <GLUT/glut.h>
编译命令
gcc -framework GLUT -framework OpenGL -framework Cocoa test.c -o test
XCode下导入
/System/Library/Frameworks/OpenGL.framework
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/GLUT.framework