During OpenGL development, fatal error C1083: can’t open include file: “GL/glut. H”: no such file or directory
I use vs2012 to write a simple OpenGL program, which always prompts when running:
Fatal error C1083: unable to open include file: “GL/glut. H”: no such file or directory;
Or fatal error C1083: cannot open include file: “GL/glaux. H”: no such file or directory;
At this time, the corresponding operations are as follows:
1. Download glut Toolkit: glut_ 37beta. Rar
2. Untie the downloaded compressed package and you will get five files, including glu32. Lib; glut32.dll,glut32.lib; Glut.dll, glut. H, glut. Lib
3. Put the extracted glut. H and glux. H in the folder C: program files (x86) and windows kits (8.0) and include (UM)( Note: the directory where each person installs vs is different, and the operation is based on the actual situation)
4. Put the extracted glut.lib, glut32.lib and glaux.lib in the static function library, which is located in the folder C: program files (x86) – Windows kits (8.0) – lib (win8) – um (x86)
5. If it still can’t work, put glut32.dll back to C: Windows/syswow64
6. Compile again. If there is still an error, change the original name of the header file # include & lt; GL/glut.h> Include & lt; glut.h>。
///
Download address of glut in Windows Environment: (about 150k in size)
http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip
This is the first article I saw when I configured the environment. Later, I made a mistake and used the method of this article to solve the problem https://www.pianshen.com/article/78231370291/
Read More:
- 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
- Vs2019 OpenGL glut: error: unable to open include file: ‘GL / glut. H’: no such file or directory
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- 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
- 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.
- Cannot open include file: ‘io.h‘: No such file or directory
- Linux QT download / usr / include / C + + / 7/ cstdlib:75 : 15: fatal error: stdlib. H: no such file or directory error
- Vs compiling OpenGL project, the solution of unable to open the source file “GL / glaux. H” appears
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
- How to solve the problem of “unable to open include file:” graphics. H “: no such file or directory”
- Vs fatal error C1083: unable to open include file: “sys / socket. H”: no such file
- Win10 vs 2017 prompt cannot open include file: “windows. H”: no such file or director
- Error: unable to open include file: ‘GL / glut. H’
- Solution of VS2008 unable to open GL / glaux. H header file
- [C]fatal error: mysql.h: No such file or directory
- fatal error: Python.h: No such file or directory
- fatal error: Python.h: No such file or directory
- fatal error: Python.h: No such file or directory compilation terminated.
- fatal error: openssl/bio.h: No such file or directory settlement programme