调试一些OpenGl程序时,会提示fatal error C1083: Cannot open include file: 'gl\glext.h': No such file or directory错误;
我从网上下载了一个glext.h文件,并将它保存在..\Microsoft Visual Studio\VC98\Include\GL文件夹下,重新编译了一遍;
我以为这下应该没有问题了,可是依然提示上述错误;最终用下列方式解决之:
1.将glext.h文件拷贝到当前项目的目录下:
2.将提示有错误的那一行#include "gl\glext.h",改为:#include "glext.h";
3.删除debug文件夹下所有的文件;(也可以不删除,直接点击‘重新生成解决方案’)
4.重新编辑即可;
问题的原因:一般来说,出现fatal error C1083: Cannot open include file: 'gl\glext.h': No such file or directory错误,很明显是
头文件找不到;一般来说,将头文件放到VC98下的include文件夹内,就能解决问题;我电脑里安装了VC++6.0,也安装了VS2005;
因此,可能是VS2005包含的文件和VC++6.0包含文件的路径不一样;
正如我所料,VC++6.0与VS2005的GL文件夹是独立的,第一次修改的是VC++6.0的软件的;
我的VS2005,gl路径为:D:\VisualStudio2005\VC\PlatformSDK\Include\gl
因此,将glext.h拷贝其中就可以了;
分享到:
相关推荐
网友分享的能够解决fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory问题的程序。MySQL-python-1.2.3.win32-py2.7.exe-32位MySQL-python-1.2.3.win-amd64-py...
fatal error C1083: 无法打开包括文件:“stdint.h”: No such file or directory. stdint.h是c99标准的头文件,vc不支持,所以肯定会提示“No such file or directory”的。使用方法:下载压缩包,解压得到两个.h...
fatal error C1083: Cannot open include file: 'io.h': No such file or directory
fatal error C1083: 无法打开包括文件:“stdint.h”: No such file or directory. stdint.h是c99标准的头文件,vc不支持,所以肯定会提示“No such file or directory”的。
下载该文件后,分别将glaux.h、glaux.dll、glaux.lib拷贝到VS2013的安装目录即:VS2013/VC/lib ; VS2013/VC/bin ; VS2013/VC/include/GL中,重新编译即可。
error C1083: 无法打开包括文件:“pthread.h”: No such file or directory cocos2d-x-2.1.5\extensions\AssetsManager\AssetsManager.h 30 1 AssetsManagerTest
Python安装MySQL文件,EXE文件 ..._mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory 原来还是驱动问题,不管mysql的事。 希望该安装包对你有所帮助~
在VS2008中,经常会遇到“fatal error C1083: 无法打开包括文件:“afxcontrolbars.h””这样的问题,该文档提供了一个解决方案。
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 希望软件对您...
fatal error: pcre2.h: No such file or directory 27 | #include "pcre2.h" 安装swoole遇到错误,把pcre2.h 放到、usr/include下
本资源是博主的博文《fatal error C1083 无法打开包括文件 “gl/glext.h” No such file or directory的解决方法》的附件资源,博文地址为https://blog.csdn.net/u014552102/article/details/87945819。下载下来后...
fatal error: zmq.hpp: No such file or directory compilation terminated. 找不到zmq.hpp的原因是, zmq.hpp只存在master中。 如果你使用release版本,那么是没有zmq.hpp这个文件的。去master中找到zmq.hpp。 将...
LINK : fatal error LNK1104: cannot open file "mfc42u.lib"-附件资源
VS2010没有inttypes.h文件,程序运行时无法打开包括文件:“inttypes.h”: No such file or directory,解决方案。
fatal error C1083: 无法打开包括文件:“inttypes.h”: No such file or direct
fatal error: boostdesc_bgm.i: No such file or directory补充文件
2、fatal error C1083: Cannot open include file: 'R…….h': No such file or directory 不能打开包含文件“R…….h”:没有这样的文件或目录。 3、error C2011: 'C……': 'class' type redefinition 类“C……...
最常见的20种VC++错误,比如:1、fatal error C1010: ...2、fatal error C1083: Cannot open include file: 'R…….h': No such file or directory 不能打开包含文件“R…….h”:没有这样的文件或目录。。。。
用于解决错误: fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory fatal error C1083: 无法打开包括文件:“stdint.h”: No such file or directory stdint.h是c99标准的头文件...