**每次Visual Studio 2008运行我使用opencv和opengl的代码时,都会出现此错误:
9.0 \ vc \ include \ stdlib.h(371):错误C2381:“exit”:重新定义; __declspec(noreturn)与
9.0 \ vc \ include \ gl \ glut.h(146):参见'exit'
9.0 \ vc \ include \ gl \ glut.h(146):参见'exit'
我该如何解决?**
最佳答案
尝试将#include“Glut.h”移到包含列表的末尾。
关于visual-studio-2008 - Visual Studio中有关退出声明的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10746226/