gl.h报错
以下内容摘自:http://blog.csdn.net/kaphen/article/details/24721999
头文件只有
#include <gl\gl.h> //OpenGL Header
#include <gl\glu.h> //GLu32 Header
时候出现以下错误
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1152): error C2144: 语法错误:“void”的前面应有“;”
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1152): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1152): error C2146: 语法错误: 缺少“;”(在标识符“glAccum”的前面)
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1152): error C2182: “APIENTRY”: 非法使用“void”类型
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1152): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1153): error C2144: 语法错误:“void”的前面应有“;”
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1153): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1153): error C2086: “int WINGDIAPI”: 重定义
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1152) : 参见“WINGDIAPI”的声明
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1153): error C2146: 语法错误: 缺少“;”(在标识符“glAlphaFunc”的前面)
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1153): error C2182: “APIENTRY”: 非法使用“void”类型
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1153): error C2086: “int APIENTRY”: 重定义
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1152) : 参见“APIENTRY”的声明
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1153): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1154): error C2146: 语法错误: 缺少“;”(在标识符“GLboolean”的前面)
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\gl\gl.h(1154): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
。。。。。。
少加了一个头文件:
#include <windows.h> //Windows Header
#include <gl\gl.h> //OpenGL Header
#include <gl\glu.h> //GLu32 Header 或者在预处理器定义添加:WIN32
gl.h报错的更多相关文章
- OBS---环境配置之#include <D3DX10.h>报错
一.先贴错误 因为这个笔记主要记录我如何整好这个OBS源码环境的,给需要的童鞋一个参考 1.1.#include <D3DX10.h> 报错 没有这个 解决方案:把2,3先解决了就水到渠 ...
- Directx11 xnamath.h 报错
xnamath.h 报错: 在标识符“XMConvertToRadians”的前面 如下报错 >d:\program files\microsoft directx sdk (june )\in ...
- 爬取图片过程遇到的ValueError: Missing scheme in request url: h 报错与解决方法
一 .scrapy整体框架 1.1 scrapy框架图 1.2 scrapy框架各结构解析 item:保存抓取的内容 spider:定义抓取内容的规则,也是我们主要编辑的文件 pipelines:管道 ...
- Oracle EBS GL 会计科目报错 GL_ACCESS_SET_LEDGERS
1.会计科目设置后,总账中找不到对应账簿 2.原因是新版本系统物化视图有问题,参照metalink解决方案得知原路径 ...
- apue.h报错问题
下载apue.3e后进入make,提示错误如下: collect2: error: exit status Makefile:: recipe for target 'badexit2' failed ...
- Redis安装过程jemalloc/jemalloc.h报错
问题: [root@localhost redis-3.0.0]# make cd src && make all make[1]: Entering directory `/data ...
- CentOS7.2 yum安装报错
1.yum源repodata配置文件repomd.xml无法找到: Couldn't open file /mnt/cdrom/repodata/repomd.xml 先找到repomd.xml的路径 ...
- vs2013 报错error C1083: 无法打开包括文件:“gl\glew.h”: No such file or directory\
vs报错诸如如无法打开“gl\xxx.h”时, 解决方法: 1.去http://glew.sourceforge.net/下载相关文件,2.在下载下来的文件里找到xxx.h,将其复制到vs的相关目录下 ...
- afxcomctl32.h与afxcomctl32.inl报错
afxcomctl32.h与afxcomctl32.inl报错 编译公司一个几年前的老项目,是从VC6.0升级到VS2005的. 1.编译时报缺少头文件,于是附件包含目录,于是出现了以下报错: 1&g ...
随机推荐
- 【BZOJ-2597】剪刀石头布 最小费用最大流
2597: [Wc2007]剪刀石头布 Time Limit: 20 Sec Memory Limit: 128 MBSec Special JudgeSubmit: 1016 Solved: ...
- python中__getattr__和__setattr__
代码: #!/usr/bin/env python #! -*- coding:utf-8 -*- class A(object): def __setattr__(self, key, value) ...
- 安装第三方RPM仓库
1.安装RepoForge源: CentOS 6.x [root@localhost /]# yum install http://pkgs.repoforge.org/rpmforge-releas ...
- noip2012 开车旅行
此题100分的解法就是先预处理出每个点的下一个点之后倍增就好了.其实并没有太大难度. pbihao用双向链表写过了此题.在本地上我treap狂操他,but在rqnoj上,我依靠反复提交才A掉此题(最后 ...
- keylogger
import pyHookimport sysimport pythoncomimport loggingfile_log = 'C:\\important\\log.txt'def OnKeyboa ...
- selenium-----chromedriver与chrome版本映射
chromedriver下载地址:http://chromedriver.storage.googleapis.com/index.html chromedriver版本 支持的Chrome版本 v2 ...
- pdf在线处理网站
https://smallpdf.com/unlock-pdf
- getElementsByClassName简单实现
function getElementsByClassName(node, className) { var aClassReg = className.split(' ').map(function ...
- C#中POST数据和接收的几种方式(抛砖引玉)
POST方式提交数据,一种众所周知的方式: html页面中使用form表单提交,接收方式,使用Request.Form[""]或Request.QueryString[" ...
- Android之仿微信图片选择器
先上效果图.第一张图显示的是“相机”文件夹中的所有图片:通过点击多张图片可以到第二张图所示的效果(被选择的图片会变暗,同时选择按钮变亮):点击最下面的那一栏可以到第三张图所示的效果(显示手机中所有包含 ...