Recently, while learning the tutorial of Nehe, I use VS2010 as the learning and development platform.
I just copied the nehe code into the empty project I built. I was about to compile and run, but I did not expect to meet the “cannot open the included file:” glaux-h “: No such file or directory”! How to do?
So, I baidu.com, there is no relevant glaux file in the system.
Therefore, the solution is as follows:
1) Search and download GLAUX related files online
2) Copy glaux. DLL to C:\Windows\System32
3) Copy glaux.lib to C:\Program Files (x86)\Microsoft SDKS \Windows\v7.0A\ lib
4) Copy glaux. H to C:\Program Files (x86)\Microsoft SDKS \Windows\ V7.0 A\Include\ GL
Click Compile Run again, “Cannot resolve the external symbol [email protected], the symbol in the function” appears.
Once again baidu, originally, is not to join the related lib caused, so also in the code to add:
#pragma comment(lib,”opengl32.lib”)
#pragma comment(lib,”glu32.lib”)
#pragma comment(lib,”glut32.lib”)
Actually, I didn’t find glut32.lib on my computer, so I commented the “#pragma comment(lib,”glut32.lib”)”.
Click compile and run again, and the program finally runs. It’s a relief.
I just copied the nehe code into the empty project I built. I was about to compile and run, but I did not expect to meet the “cannot open the included file:” glaux-h “: No such file or directory”! How to do?
So, I baidu.com, there is no relevant glaux file in the system.
Therefore, the solution is as follows:
1) Search and download GLAUX related files online
2) Copy glaux. DLL to C:\Windows\System32
3) Copy glaux.lib to C:\Program Files (x86)\Microsoft SDKS \Windows\v7.0A\ lib
4) Copy glaux. H to C:\Program Files (x86)\Microsoft SDKS \Windows\ V7.0 A\Include\ GL
Click Compile Run again, “Cannot resolve the external symbol [email protected], the symbol in the function” appears.
Once again baidu, originally, is not to join the related lib caused, so also in the code to add:
#pragma comment(lib,”opengl32.lib”)
#pragma comment(lib,”glu32.lib”)
#pragma comment(lib,”glut32.lib”)
Actually, I didn’t find glut32.lib on my computer, so I commented the “#pragma comment(lib,”glut32.lib”)”.
Click compile and run again, and the program finally runs. It’s a relief.
Read More:
- Vs compiling OpenGL project, the solution of unable to open the source file “GL / glaux. H” appears
- 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
- Solution to the problem of unable to open glaux. H in vs2013
- Vc2010 configuring OpenGL environment
- Using glut in CodeBlocks
- Configuring OpenGL in VS
- OpenGL programming error analysis
- OpenGL program running prompt glut32.dll missing problem
- 0028opengl program running prompt glut32.dll missing one of the solutions
- A series of problems in configuring OpenGL development environment in vs2015
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- Configuration of OpenGL in VS2010
- DirectX encountered “unresolved external symbol” when compiling on vs2015__ The solution and reason of “vsnwprintf”
- CodeBlocks configuring OpenGL
- Visual studio 2017, OpenGL program running prompt glut32.dll missing solution
- Error: unable to open include file: ‘GL / glut. H’
- 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 solution of configuring OpenGL in vs2017