OpenGL's top rookie question read a book "OpenGL three-dimensional graphics system development and application Technology", however, the function involved in the Glut.h file is not properly connected, the typical error is as follows:------started build: Project: Gears, Configuration: Debug Win32-- ----1> is being linked ... 1>gears.obj:error LNK2019: unresolved external symbol ___glutinitwithexit@12, which is referenced in the function _glutinit_atexit_hack@8 1>gears.obj: Error LNK2019: An external symbolic ___glutcreatewindowwithexit@8 that cannot be resolved, which is referenced in the function _glutcreatewindow_atexit_hack@4 1>./debug/ Gears.exe:fatal error Lnk1120:2 an unresolved external command 1> the build log is saved in the file://c:/vcprog/OpenGL/book/Chapter03/GEARS/Debug/ BuildLog.htm "1>gears-3 error, 0 warnings ========== build: 0 has succeeded, 1 has failed, 0 latest, 0 has skipped ========== repeatedly thinking, also did not find the answer, the Internet also has said similar question, but unexpectedly did not have this aspect of the solution, today read the glut.h of the file content, glut.h annotation unexpectedly wrote the following: Note this __glut*withexit routines should is NEVER called. To avoid the atexit workaround, #define Glut_disable_atexit_hack. So, in front of the #include <GL/glut.h> added a: #define Glut_disable_atexit_hack again link, all normal. This problem almost bothered me for three months, today finally resolved, the road at the foot, happy ...