配置opengl glut库遇到的问题

遇到的问题
(1)error LNK2019: 无法解析的外部符号 __imp____glutInitWithExit@12,该符号在函数 _glutInit_ATEXIT_HACK@8 中被引用
(2)error LNK2019: 无法解析的外部符号 __imp____glutCreateWindowWithExit@8,该符号在函数 _glutCreateWindow_ATEXIT_HACK@4 中被引用

解决方法:

#include <GL/glut.h>前面加上了一句: #define GLUT_DISABLE_ATEXIT_HACK

原文地址:https://www.cnblogs.com/h694879357/p/13933373.html