Code: Select all
D:\Git\geckoos_source\Gecko_src>make
gfx.c
D:/Git/geckoos_source/Gecko_src/source/gfx.c: In function 'gfx_draw_image':
D:/Git/geckoos_source/Gecko_src/source/gfx.c:126:2: error: unknown type name 'Vector'; did you mean 'vector'?
Vector axis =(Vector) {0 , 0, 1 };
^~~~~~
vector
D:/Git/geckoos_source/Gecko_src/source/gfx.c:126:16: error: 'Vector' undeclared (first use in this function); did you mean 'vector'?
Vector axis =(Vector) {0 , 0, 1 };
^~~~~~
vector
D:/Git/geckoos_source/Gecko_src/source/gfx.c:126:16: note: each undeclared identifier is reported only once for each function it appears in
D:/Git/geckoos_source/Gecko_src/source/gfx.c:126:24: error: expected ',' or ';' before '{' token
Vector axis =(Vector) {0 , 0, 1 };
^
In file included from C:/devkitPro/libogc/include/gccore.h:51,
from D:/Git/geckoos_source/Gecko_src/source/gfx.c:7:
D:/Git/geckoos_source/Gecko_src/source/gfx.c:127:23: warning: passing argument 2 of 'ps_guMtxRotAxisRad' from incompatible pointer type [-Wincompatible-pointer-types]
guMtxRotAxisDeg (m2, &axis, degrees);
^~~~~
C:/devkitPro/libogc/include/ogc/gu.h:493:57: note: in definition of macro 'guMtxRotAxisDeg'
#define guMtxRotAxisDeg(mt,axis,deg) guMtxRotAxisRad(mt,axis,DegToRad(deg))
^~~~
C:/devkitPro/libogc/include/ogc/gu.h:416:60: note: expected 'guVector *' {aka 'struct _vecf *'} but argument is of type 'int *'
void ps_guMtxRotAxisRad(register Mtx mt,register guVector *axis,register f32 tmp0);
~~~~~~~~~~~~~~~~~~~^~~~
D:/Git/geckoos_source/Gecko_src/source/gfx.c: In function 'gfx_drawtile':
D:/Git/geckoos_source/Gecko_src/source/gfx.c:179:2: error: unknown type name 'Vector'; did you mean 'vector'?
Vector axis =(Vector) {0 , 0, 1 };
^~~~~~
vector
D:/Git/geckoos_source/Gecko_src/source/gfx.c:179:16: error: 'Vector' undeclared (first use in this function); did you mean 'vector'?
Vector axis =(Vector) {0 , 0, 1 };
^~~~~~
vector
D:/Git/geckoos_source/Gecko_src/source/gfx.c:179:24: error: expected ',' or ';' before '{' token
Vector axis =(Vector) {0 , 0, 1 };
^
In file included from C:/devkitPro/libogc/include/gccore.h:51,
from D:/Git/geckoos_source/Gecko_src/source/gfx.c:7:
D:/Git/geckoos_source/Gecko_src/source/gfx.c:180:23: warning: passing argument 2 of 'ps_guMtxRotAxisRad' from incompatible pointer type [-Wincompatible-pointer-types]
guMtxRotAxisDeg (m2, &axis, degrees);
^~~~~
C:/devkitPro/libogc/include/ogc/gu.h:493:57: note: in definition of macro 'guMtxRotAxisDeg'
#define guMtxRotAxisDeg(mt,axis,deg) guMtxRotAxisRad(mt,axis,DegToRad(deg))
^~~~
C:/devkitPro/libogc/include/ogc/gu.h:416:60: note: expected 'guVector *' {aka 'struct _vecf *'} but argument is of type 'int *'
void ps_guMtxRotAxisRad(register Mtx mt,register guVector *axis,register f32 tmp0);
~~~~~~~~~~~~~~~~~~~^~~~
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:18: gfx.o] Error 1
make: *** [Makefile:100: build] Error 2
I tried to fix some things in the code (i started replacing "Vector" with "guVector" in the gfx.c) but then new errors show up. I guess it doesn't show all the errors since it already stops at this file.
Note that i didn't make any changes to the code (yet), first i want to be able to compile it as it is.
Any help is appretiated =) I will reply to any more questions or request for information as fast as possible!
Regards, waffeln