C2381 , C3861 VC++ Problem OpenGL

Hello . I have problem with :

------ Build started: Project: szescian4, Configuration: Release Win32 ------
1>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\stdlib.h(406) : error C2381: ‘exit’ : redefinition; __declspec(noreturn) differs
1> D:\GL/glut.h(146) : see declaration of ‘exit’
1>.\szescian4.cpp(207) : error C3861: ‘exit’: identifier not found
1>Build log was saved at “file://d:\Library\programy-src\rozdział 03\Release\BuildLog.htm”
1>szescian4 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can You help me ? What ought i do ? What do You advise ?
Is it result of mirroring libraries in access paths ?

Try updating your GLUT headers. Looking at this filein Mark Kilgard’s GLUT repository, I see

/* Too hard to get the exit annotations correct for exit in recent Visual Studio compilers (2015 on) */
#  if _MSC_VER >= 1900
#   include <corecrt.h>
#  endif

I’m assuming you’re using the original MJK GLUT implementation because FreeGLUT just uses <stdlib.h> for the exit prototype.

Lines 122-140 in that file include some comments about linking issues related to exit.