C++ 供过于求的问题

C++ 供过于求的问题,c++,opengl,eclipse-cdt,C++,Opengl,Eclipse Cdt,我正在使用eclipsecdt和MinGW。 我必须用OpenGL编译和运行C++程序。我刚刚配置了MinGW的include e lib目录,并用Eclipse CDT在C中运行了几个OpenGL程序 这次我有个问题。该程序包含一个glut.h文件。在这个文件中,我有一段代码: #if defined(_WIN32) # ifndef GLUT_BUILDING_LIB //extern _CRTIMP void __cdecl exit(int); _CRTIMP __declspec (n

我正在使用eclipsecdt和MinGW。 我必须用OpenGL编译和运行C++程序。我刚刚配置了MinGW的include e lib目录,并用Eclipse CDT在C中运行了几个OpenGL程序

这次我有个问题。该程序包含一个glut.h文件。在这个文件中,我有一段代码:

#if defined(_WIN32)
# ifndef GLUT_BUILDING_LIB
//extern _CRTIMP void __cdecl exit(int);
_CRTIMP __declspec (noreturn) void __cdecl exit (_In_ int _Code);
# endif
...
如果我构建项目,我会收到2个错误:

..\src\glut.h:153: error: variable or field 'exit' declared void
..\src\glut.h:153: error: '_In_' was not declared in this scope
我不知道为什么…

您使用的是哪种GLUT实现?您使用的是哪种GLUT实现?