开发者

Problem with glut.h [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

I'm using Eclipse CDT with MinGW. I must compile and run a c++ program with OpenGL. I have just configured the include e lib directories of MinGW and I have just runned several OpenGL programs in C with Eclipse CDT.

This time I have a problem. This program contains a glut.h file. In this file 开发者_如何学JAVAI have this section of code:

#if defined(_WIN32)
# ifndef GLUT_BUILDING_LIB
//extern _CRTIMP void __cdecl exit(int);
_CRTIMP __declspec (noreturn) void __cdecl exit (_In_ int _Code);
# endif
...

If I build the project I received 2 errors:

..\src\glut.h:153: error: variable or field 'exit' declared void
..\src\glut.h:153: error: '_In_' was not declared in this scope

and I don't know why...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜