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 __imp__glLoadIdentity@0, 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 __imp__glLoadIdentity@0, 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:
- 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
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- Vs compiling OpenGL project, the solution of unable to open the source file “GL / glaux. H” appears
- 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
- Solution of VS2008 unable to open GL / glaux. H header file
- [unity problem] what should I do if I encounter ‘Global::’ already contains a definition
- Vs2019 OpenGL glut: error: unable to open include file: ‘GL / glut. H’: no such file or directory
- Cannot open include file: ‘io.h‘: No such file or directory
- How to solve the problem of “unable to open include file:” graphics. H “: no such file or directory”
- 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.
- Win10 vs 2017 prompt cannot open include file: “windows. H”: no such file or director
- Python read / write file error valueerror: I/O operation on closed file
- How do I download or save a YouTube video to my computer?
- MSDN I tell you new site next I tell you open invitation code registration! Today’s quota is 5000!
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
- Git error: unlink of file failed.Should I try again?
- About the problem I encountered: 226 transfer done but failed to open directory
- Vs fatal error C1083: unable to open include file: “sys / socket. H”: no such file
- Linux QT download / usr / include / C + + / 7/ cstdlib:75 : 15: fatal error: stdlib. H: no such file or directory error