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 _GetRegistrySysColors@8
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
- VS2010 compiler 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
- 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
- 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”?
- Solution to the problem of unable to open glaux. H in vs2013
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- Solution of unable to open source file “StdAfx. H” in vs2013 / 2012
- Vs2019 OpenGL glut: error: unable to open include file: ‘GL / glut. H’: no such file or directory
- Vs error prompt: “unable to open source file XXXX. H” possible reasons and Solutions
- Solution of vs unable to open source file and link library file
- How to solve the problem of “unable to open source file XXXXX. H” in VS development?
- A fatal error C1083 occurred when compiling C + + code under. Net: unable to open the include file: “xuhk”_ Jnihelloworld. H “: solution to no such file or directory error.
- Vs2017 C + + cannot open source file: “sdkddkver. H”, “stdio. H”, “TCHAR. H”
- Vs cannot open the source file unistd. H under Windows
- Solution to the problem of vs2017 error report unable to open source file
- Unable to open source file in vs
- IntelliSense in VC + + 2010: unable to open source file “StdAfx. H”
- Compiling the pi_kernel source code appears: fatal error: openssl/opensslv.h: No such file or directory
- Vs cannot open source file “XXX. H” problem