Recently, I was learning the use of Linux and OpenGL, and I saw the source code in the textbook of computer graphics. I tried to write and compile it, but it failed in the end. The reason is unknown. Online search problem function, find a new source code, input can be correctly compiled and generated executable file, display a teapot. Write so much, hope to get a point, have a source code, very need to download learning.