Fatal error c1083: cannot open include file: 'Gl \ glext. H': no such file or directory

Source: Internet
Author: User

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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.