The problem is as follows:
The reason:
Lack of header files and libraries to compile OpenGL;
Solutions:
1. Download OpenGL header files and libraries;
Download address: https://download.csdn.net/download/ssagnn23/2560229
2. Put the file in the specified directory;
(1) Copy GLUX32.DLL, GLUT32.DLL and GLUX.DLL to C:/WINDOWS/system32. The system32 directory should already have OpenGL32.DLL and GLU32.DLL.
(2) Copy Glut. H, Glut. H, Glut. H, Glut. H to
C:/Program Files/Microsoft Visual Studio X.0/VC/include/ GL
Or you might
C:\Program Files (x86)\Microsoft SDKs\Windows\vX.XA\Include\gl
Or you might
C:\Program Files (x86)\Windows Kits\X.X\Include\um\gl
(3) Copy glaux-lib, glu32. LIB, glut32. LIB, opengl32. LIB, Glut.lib, Glut.lib, Glut.lib, Glut.lib, Glut.lib, Glut.lib, Glut.lib
[32Bit]C:/Program Files/Microsoft Visual Studio X.0/VC/lib [32Bit]C:/Program Files/Microsoft Visual Studio X.0/VC/lib
Or you might
C:\Program Files (x86)\Microsoft SDKs\Windows\vX.XA\Lib
Or you might
C:\Program Files (x86)\Windows Kits\X.X\Lib\XXX
Other questions 1:
Solution:
1. Open the Property Pages dialog box for the project.
2. Click the Linker folder.
3. Click the Command Line property page.
4. Copy /SAFESEH:NO into the “Additional Options” box and click Apply
Other Question # 2:
1 & gt; Glaux. Lib (tk.obj) : error LNK2019: Cannot resolve external symbol _sscanf, which is referenced in the function [email protected]
1> Glaux. Lib (tk.obj) : error LNK2019: Unresolvable external symbol _vsprintf, which is referenced in the function _PrintMessage
VS2015 compilation will cause this problem, the solution is in the project properties ->; The linker – & gt; Input – & gt; Add a dependency legacy_stdio_defines.lib to the attached dependency;
Reproduced in: https://www.cnblogs.com/21tcy/p/9771340.html
Read More:
- Solution of VS2008 unable to open GL / glaux. H header file
- The first time I write OpenGL program, what should I do when I encounter “can’t open include file:” GL / glaux. H “: no such file or directory”?
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- Solution to the problem of unable to open glaux. H in vs2013
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- Vc2010 configuring OpenGL environment
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- Error: unable to open include file: ‘GL / glut. H’
- |-OpenGL – | some small problems about the glut Library
- The solution of configuring OpenGL in vs2017
- A series of problems in configuring OpenGL development environment in vs2015
- [graphics] exceptions in downloading and installing OpenGL in vs2017
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)
- 1 vs20152017 + OpenGL to configure and draw a white rectangle
- Vs2019 OpenGL glut: error: unable to open include file: ‘GL / glut. H’: no such file or directory
- Configuring OpenGL in VS
- Using glut in CodeBlocks
- The C compiler identification is unknown solution
- Configuration of OpenGL in VS2010