加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

函数’glReadPixels’的隐式声明在ios 8上的C99编译中无效

发布时间:2020-12-14 19:28:11 所属栏目:百科 来源:网络整理
导读:当我尝试使用iOS 8编译iOS项目时遇到问题. 错误消息是: Implicit declaration of function 'glReadPixels' is invalid in C99 compiling Conflicting types for 'glReadPixels' Declaration of 'glReadPixels' must be imported from module 'OpenGLES.ES3.
当我尝试使用iOS 8编译iOS项目时遇到问题.

错误消息是:

Implicit declaration of function 'glReadPixels' is invalid in C99 compiling
 Conflicting types for 'glReadPixels'
 Declaration of 'glReadPixels' must be imported from module 'OpenGLES.ES3.gl' before it is required

解决方法

最近我遇到了同样的问题.

解决此问题的最简单方法是添加@import OpenGLES;在您收到此消息的每个文件中的行.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读