Vs compiling OpenGL project, the solution of unable to open the source file “GL / glaux. H” appears

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: