Scanners like gtk-doc and g-ir-scanner get confused by: typedef struct _Foo { ... } Foo; And expect instead: typedef struct _Foo Foo; struct _Foo { ... }; CoglMatrix definition should be changed to avoid the former type.