How to fix problem Error C2381: 'exit'


Hello guys ...
This is my problem in this day (20-2-2014). i'm using GLUT to make a graph comp.
and you know this is problem is very simple, and you know C++ is sensitive
if you create header program and you write this code (
as shown below) you can this error !
comment error : "error C2381: 'exit' : redefinition; __declspec(noreturn) differs C:\Program Files\Microsoft Visual Studio 8\VC\include\GL/glut.h(146) : see declaration of 'exit'"

  
problem fix if you move header (as shown above)

Look this error List !!! LOL




Sorry if my english is very bad !!!


Source : Sosial microsoft and stackoverflow 

2 comments: