Debug some OpenGLProgramThe system prompts fatal error c1083: cannot open include file: 'Gl \ glext. H': no such file or directory error;
I downloaded a glext. h file from the Internet, saved it in the. \ Microsoft Visual Studio \ vc98 \ include \ GL folder, and re-compiled it;
I thought there should be no problem, but the above error is still prompted; the solution is as follows:
1. Copy the glext. h file to the directory of the current project:
2. Change the line # include "Gl \ glext. H" with an error prompt to: # include "glext. H ";
3. Delete all files in the debug folder. (You can also click 'regenerate work 'without deleting the files ')
4. Click Edit again;
Cause: In general, fatal error c1083: cannot open include file: 'Gl \ glext. H': no such file or directory error occurs, which is obviously
The header file cannot be found. In general, placing the header file in the include folder under vc98 can solve the problem. I installed VC ++ 6.0 on my computer and vs2005;
Therefore, the paths of files contained in vs2005 are different from those contained in VC ++ 6.0;
As I expected, VC ++ 6.0 is independent from the GL folder of vs2005. The first change was made to the VC ++ 6.0 software;
My vs2005, GL path: D: \ visualstudio2005 \ Vc \ platformsdk \ include \ GL
Therefore, you can copy glext. h;