Implicit declaration of 'glReadPixels' function invalid in compilation of C99 on ios 8

I have a problem when I try to compile an iOS project with iOS 8.

Error messages:

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 
+5
source share
2 answers

I recently ran into the same problem.

The easiest way to solve this problem is to add the @import OpenGLES; line @import OpenGLES; to every file where you have this message.

+8
source

IOS 8 requires import

  #import <OpenGLES/ES3/glext.h> 

This link is a solution. Click here ...

+1
source

Source: https://habr.com/ru/post/1203297/


All Articles