Home > Back-end >  Opengl program error: fatal error C1083: always open include file: 'GL/glut. H: No to fil
Opengl program error: fatal error C1083: always open include file: 'GL/glut. H: No to fil

Time:09-26

Opengl program error: fatal error C1083: always open include file: 'GL/glut. H: No to the file or directory

Windows 10 system + vc6.0

When I was in compiler, the following problems
Fatal error C1083: always open include file: 'GL/glut. H: No to the file or directory
Before baidu search some information, I found there are a lot of people and I have similar problems, mainly adopted the following solutions: my installation directory, for example:

After according to the following steps to complete (check) a few times but still appear similar problems, I don't know how to solve, please master glad to solve similar problems, thanks!!!!!!!!!!

In the virtual XP system as above Settings can be run, but not a on Windows 10,

(1) "d: \ \ Program Files \ Microsoft Visual Studio \ VC98 \ include \ GL folder", let the glut of decompression. H on the GL folder, no GL can build a folder, some commonly,

(2) "d: \ \ Program Files \ Microsoft Visual Studio \ VC98 \ lib folder", let the glut of decompression. Lib and glut32 lib in static function library folder, where the lib folder,

(3) to extract the glut. DLL and glut32 DLL in the operating system directory under the system32 folder, (a typical position is: C: \ Windows \ system32) this is a very important dynamic link library set!
(4) to create a Win32 Console Application, (I created, for example, project called simpleGL)

(5) Link OpenGL libraries: first click on the Project in Visual c + +, and then click on the Settings, click again to find the Link to the final in the Object/library modules with opengl32. The front of the lib Glut32. Lib Glaux. Lib glu32. Lib,

(6) click the Project Settings of C/C + + TAB, the Preprocessor definitions of _CONSOLE __WINDOWS instead, finally click OK,

  • Related