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 ...
随机推荐
- ngrok反向隧道--获取内网IP
ngrok反向隧道 前情提要:小明与小白各有一台主机,两台主机在同一内网,小明想直接通过内网ssh到小白的主机上.但是小白的ip地址会不断的变化,而小明不想每次都要麻烦小白查看ip.于是小明催生了一个 ...
- Android中利用AIDL机制调用远程服务
服务端: //CalculateInterface.aidl package com.itheima.aidl.calculate; interface CalculateInterface { do ...
- Python报错UnicodeDecodeError: ascii codec can t decode byte 0xe0 ...解决方法
用命令(python setup.py install)安装webpy时候总是报错 在网上搜索到的解决方法如下: 1. 这是Python 2 mimetypes的bug 2. 需要将Python2.7 ...
- Java开发环境搭建——CentOS配置
普通用户添加到sudoers u切换到root visudo进入编辑,找到root ALL=(ALL) ALL,在后面加上myusername ALL=(ALL) ALL 配置网络sudo ...
- AngularJS 细节
AngularJS 表达式({{ expression }})类似于 AngularJS ng-bind 例子: <span>表达式</span> <div ng-app ...
- SVN 提交报错:×××文件is not under version control
解决方法:1.删除出错的文件,然后在出错文件所在文件夹执行还原操作 2.VS中可将文件先排除在项目外,再包含在项目内,即可正常提交
- php实现文件上传与下载(中)
出现不想让用户看见的信息,可以使用错误抑制符号@:当然能echo的东西都是可以赋值给一个变量的: 定义用户上传文件类型,将其放在数组变量allowExt中,用if(!in_array(第一个参数为获取 ...
- css3 圆角
-moz-border-radius: 15px; /* Gecko browsers */ -webkit-border-radius: 15px; /* Webkit browsers */ bo ...
- Lua IDE
http://blog.csdn.net/visualcatsharp/article/details/37653107
- C#通过WebClient/HttpWebRequest实现http的post/get方法
C#通过WebClient/HttpWebRequest实现http的post/get方法 http://www.cnblogs.com/shadowtale/p/3372735.html