编译glut-3.7.6时出现错误,
error C2381: "exit": 重定义; __declspec(noreturn)
解决方法: #include <GL/glut.h>
#include <stdlib.h>
改成:
#include <stdlib.h>
#include <GL/glut.h>
即可编译通过。
编译glut-3.7.6时出现错误,
error C2381: "exit": 重定义; __declspec(noreturn)
解决方法: #include <GL/glut.h>
#include <stdlib.h>
改成:
#include <stdlib.h>
#include <GL/glut.h>
即可编译通过。
打赏作者