Error C2381: ‘exit’ : redefinition; error C2381: ‘exit’ : redefinition; error C2381: ‘exit’ : redefinition; __declspec (noreturn) differs. The solution to the problem is to include the #include< stdlib.h> On the # include & lt; gl\glut.h> Just before.
Error LNK2001: unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12
Error LNK2001: unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12 Unresolved external symbol __imp____glutInitWithExit@12
#define GLUT_DISABLE_ATEXIT_HACK
It is estimated that the reason for the above problem is the repeated definition problem.
Read More:
- Summary of problems encountered in compiling opengl code
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- Solutions to some problems encountered in programming with vs2017
- Problems in the construction of CUDA environment (GPU parallel programming)
- OpenGL programming error analysis
- Summary of problems encountered in using OpenGL in QT
- Problems in configuring OpenGL
- Some configuration problems of OpenGL in VS2008
- Write about the problems and solutions when configuring OpenGL in vs2015
- A series of problems in configuring OpenGL development environment in vs2015
- Some problems in OpenGL
- Problems encountered in running OpenGL
- Small problems encountered in compiling OpenGL under VS2010
- Problems encountered in vs2015 configuration using OpenGL environment
- Problems encountered in configuring OpenGL development environment in vs2015
- Some problems and solutions in learning opengl in vs2017
- Problems and solutions in learning opengl
- Common problems of shadow map in OpenGL
- Configuration of OpenGL under CodeBlocks and solutions to problems encountered
- OpenGL basic graphics programming – OpenGL and 3D graphics world