Error: _ defined as a function returning a function?
I'm trying to compile this library. Recently, i came across the following errors and have no clue what they mean:
Code:
Compiling: ..\..\tests\conform\test-actor-invariants.c
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl.h:32,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/clutter/clutter-fixed.h:33,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/clutter/clutter-color.h:34,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/clutter/clutter-actor.h:36,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/clutter/clutter.h:33,
from C:\Prog\clutter-0.9.8\tests\conform\test-actor-invariants.c:4:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl-defines-GL.h:785: error: syntax error before '*' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl-defines-GL.h:786: error: `GLhandleARB' declared as function returning a function
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl-defines-GL.h:790: error: `COGL_PFNGLCREATESHADEROBJECTARBPROC' declared as function returning a function
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl-defines-GL.h:796: error: syntax error before '*' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl-defines-GL.h:819: error: syntax error before '*' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl-defines-GL.h:830: error: syntax error before "GLcharARB"
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl-defines-GL.h:868: error: syntax error before "GLsizeiptr"
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/cogl/cogl-defines-GL.h:875: error: syntax error before "GLintptr"
Part of the relevant (I think) code of the include file is as follows (define then lines 784-797):
Code:
/* Extension function prototypes */
#ifndef APIENTRY
#define APIENTRY
#endif
#ifndef APIENTRYP
#define APIENTRYP APIENTRY *
#endif
///....way down later
typedef GLhandleARB
(APIENTRYP COGL_PFNGLCREATEPROGRAMOBJECTARBPROC)
(void);
typedef GLhandleARB
(APIENTRYP COGL_PFNGLCREATESHADEROBJECTARBPROC)
(GLenum shaderType);
typedef void
(APIENTRYP COGL_PFNGLSHADERSOURCEARBPROC)
(GLhandleARB shaderObj,
GLsizei count,
const GLcharARB* *string,
const GLint *length);
I truly don't know what these errors could mean, because in the first case i thought COGL_PFNGLCREATEPROGRAMOBJECTARBPROC was simply being defined as a pointer to a function which returns GLhandleARB and takes those parameters. Thus, it must be something else,, i think
Please help!