1. Compile-time prompts
“Error C2381: ‘exit’ : redefine; __declspec(noreturn) different “error
“Error C2381: ‘exit’ : redefine; __declspec(noreturn) different “error
#include <; #include <; GL/glut.h>
# include & lt; stdlib.h>
:
include
:
#include
stdlib.h>
# include & lt; GL/glut.h>
to go through.
enGL and C++ have a bit of an incongruence. Include the standard C++ library header before the GLUT graphics library header.
2. Compile passed, runtime prompt
(1) ERROR LNK2019: Unable to resolve the external symbol [email protected], which is referenced in the function [email protected]
(2) ERROR LNK2019: Unable to resolve the external symbol [email protected], which is referenced in the function [email protected]
Solution:
The # include & lt; GL/glut.h> He added:
# define GLUT_DISABLE_ATEXIT_HACK
(!!!!!! Attention, the front!!)
Read More:
- Two problems in OpenGL Programming
- Summary of problems encountered in compiling opengl code
- Using Visual Studio 2015 to create. DLL and use. DLL
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- error: ‘NULL’ was not declared in this scope
- Some small problems in using vs2017
- Viewing Android dependency tree using gradle
- Unloading and installation of node and NPM of Vue Foundation
- Mobile development: the error of “task failed with exit 1 signal 0 {…”
- Windows_ Win7 broadband connection prompt remote access connection manager error
- command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- Summary of problems encountered by CodeBlocks + OpenGL
- Compile QT source code error causes and Solutions
- The computer can’t turn on ERROR: NO BOOT DISK HAS BEEN DETECTED OR THE DISK HAS FAILED
- ubuntu install mysqlclient error ERROR: Failed building wheel for mysqlclient solution
- Expected unqualified ID before string constant
- Arduino ide 1.6.9 problems encountered error:’TKD2′ was not declared in this scope
- Using glut in CodeBlocks
- Configure glut in Ubuntu and implement basic OpenGL experiment on CodeBlocks platform
- caffe deep learning [three] compilation error: fatal error: hdf5.h: No such file or directory compilation terminated.