A Configuring OpenGL
1, first, download Glut.rar file, this online search can be found, can also be downloaded from the OpenGL official website, click to open the link.
2, after decompression can get 5 files: glut.h, Glut.dll, Glut.lib, Glut32.lib, Glut32.dll. And then
(1) Place the Glut.h file under the C:\ProgramFiles\Microsoft Sdks\windows\v7.0a\include\gl folder;
The tutorials on the web say it's in that directory, but v7.0 doesn't seem to have any include, let alone subdirectories, but opens v7.1--
GL Folder exists so I put glut.h in the folder, but at compile time error C1083: Cannot open include file: "Gl/glut.h
(2) Put glut.lib, glut32.lib two files in the same folder as the static function library, that is to say that the two files to be placed in their own VS2010
The Vc\lib file in the installation directory. My vs2013 installation directory is D:\Program Files (x86) \microsoft Visual Studio 12.0\vc\lib;
(3) Finally put the Glut.dll, glut32.dll files under the C:\windows\system32 folder, but in order to insure the 64-bit system in
Glut.dll, Glut32.dll are also added under C:\Windows\SysWOW64 file
For the above error, we found that the path of the file appeared directly when we entered gl/
Place the Glut.h file under the C:\Program files (x86) \ Windows KITS\8.1\INCLUDE\UM\GL path
Compile to run successfully
Before the end, send everyone a word (and everyone):
There's always a miracle when you believe.