Thx! You were exactly right. I had to update glext.h. I finally got it built! Woopee! Now, i tried the newer version, 0.9.8. I really have got to learn how to debug these sort-of cryptic error messages.
This one was as follows.
Code:
Compiling: ..\..\clutter\cogl\common\cogl-matrix.c
C:\Prog\clutter-0.9.8\clutter\cogl\common\cogl-matrix.c: In function `cogl_matrix_ortho':
C:\Prog\clutter-0.9.8\clutter\cogl\common\cogl-matrix.c:221: error: parameter name omitted
C:\Prog\clutter-0.9.8\clutter\cogl\common\cogl-matrix.c:222: error: parameter name omitted
C:\Prog\clutter-0.9.8\clutter\cogl\common\cogl-matrix.c:241: error: syntax error before ')' token
C:\Prog\clutter-0.9.8\clutter\cogl\common\cogl-matrix.c:247: error: syntax error before ')' token
C:\Prog\clutter-0.9.8\clutter\cogl\common\cogl-matrix.c:247: error: syntax error before ')' token
The relevant function is:
Code:
void
cogl_matrix_ortho (CoglMatrix *matrix,
float left,
float right,
float bottom,
float top,
float near,
float far)
{
CoglMatrix ortho;
/* column 0 */
ortho.xx = 2.0 / (right - left);
ortho.yx = 0.0;
ortho.zx = 0.0;
ortho.wx = 0.0;
/* column 1 */
ortho.xy = 0.0;
ortho.yy = 2.0 / (top - bottom);
ortho.zy = 0.0;
ortho.wy = 0.0;
/* column 2 */
ortho.xz = 0.0;
ortho.yz = 0.0;
ortho.zz = -2.0 / (far - near);
ortho.wz = 0.0;
/* column 3 */
ortho.xw = -(right + left) / (right - left);
ortho.yw = -(top + bottom) / (top - bottom);
ortho.zw = -(far + near) / (far - near);
ortho.ww = 1.0;
cogl_matrix_multiply (matrix, matrix, &ortho);
}
The only thing i can think of is that if somehow CoglMatrix was defined as #define CoglMatrix , or something else which broke the function definition. Not so, though. In cogl-matrix.h, CoglMatrix is defined as
Code:
typedef struct _CoglMatrix CoglMatrix;
and then...
Code:
struct _CoglMatrix
{
/*< private >*/
/* column 0 */
float xx;
float yx;
float zx;
float wx;
//......