Originally posted by messiaen
Sent by Cajetan in a PM. Please post question in the appropriate threads, not in PMs, geeky stuff is the purpose of this forum.
Originally posted by Cajetan
Okay another question(sorry for annoying you, but there isn't any other who knows stuff like that): How do i setup all stuff correctly?
Yes, i did following:
Installed MinGW, MSYS everything perfectly. I also got z64actor and z64teleport successfully compiled. Now i wanted to make my OWN code for SM64. Now comes the hard part for me: How do i setup everything correctly. In my folder is following:
m64helloworld.c
mario64.h
mario64.x
hook
makefile
Now with MSYS i did cd to that folder. Now i typed in: make
i get following errors:
"make: *** No rule to make target `mario64.o', needed by `mario64.elf'. Stop."
So, but i know mario64.o and mario64.elf get generated... i can't have them, because they must be later generated... So what am i doing wrong here?
I don't blame you, makefiles are very confusing.
Your makefile PRJNAME is probably mario64, so it expects your source file to be called mario64.c, unless you specify otherwise.
Well, it does compile now, but again a lot of errors:
$ make hlw
mips64-gcc -std=gnu99 -nodefaultlibs -march=vr4300 -mtune=vr4300 -mabi=32 -I. -I../include -fno-builtin -o3 -c -o hlw.o hlw.c
In file included from hlw.c:1:
explode.h:43: error: expected ')' before 'flags'
explode.h:56: error: expected ')' before '*' token
explode.h:57: error: expected ')' before '*' token
explode.h:58: error: expected ')' before '*' token
explode.h:59: error: expected ')' before '*' token
explode.h:60: error: expected ')' before 'obj_pointer'
explode.h:61: error: expected ')' before 'object1'
explode.h:62: error: expected ')' before 'dst'
explode.h:63: error: expected ')' before 'obj_ptr'
explode.h:64: error: expected ')' before 'argument'
explode.h:69: error: expected ')' before 'obj_pointer'
explode.h:70: error: expected ')' before 'model_ID'
explode.h:71: error: expected ')' before 'animation_index'
explode.h:72: error: expected ')' before 'argument'
explode.h:73: error: expected ')' before 'obj_pointer'
explode.h:74: error: expected ')' before 'behavior_segmented_pointer'
explode.h:75: error: expected ')' before 'obj_pointer'
explode.h:76: error: expected ')' before 'obj_pointer'
explode.h:79: error: expected ')' before 'mario_struct_pointer'
explode.h:81: error: expected ')' before '*' token
explode.h:85: error: expected ')' before 'layer'
explode.h:86: error: expected ')' before '*' token
explode.h:89: error: expected ')' before 'msg_ID'
explode.h:90: error: expected ')' before 'x_pos'
explode.h:91: error: expected ')' before 'x'
explode.h:92: error: expected ')' before 'arg'
explode.h:95: error: expected ')' before 'x'
explode.h:96: error: expected ')' before 'x'
explode.h:97: error: expected ')' before 'x'
explode.h:100: error: expected ')' before 'segmented_pointer'
explode.h:103: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
explode.h:112: error: expected specifier-qualifier-list before 'u16'
explode.h:119: error: expected specifier-qualifier-list before 'u32'
explode.h:125: error: expected declaration specifiers or '...' before 'u16'
explode.h:131: error: expected specifier-qualifier-list before 'u32'
explode.h:154: error: expected specifier-qualifier-list before 'u32'
explode.h:172: error: expected specifier-qualifier-list before 'u16'
explode.h:190: error: expected specifier-qualifier-list before 's16'
explode.h:203: error: expected specifier-qualifier-list before 'u32'
explode.h:220: error: expected specifier-qualifier-list before 's16'
explode.h:243: error: expected specifier-qualifier-list before 'u16'
explode.h:415: error: expected specifier-qualifier-list before 'u32'
hlw.c: In function '_start':
hlw.c:5: warning: implicit declaration of function 'PrintXY'
make: *** [hlw.o] Error 1"
I used now the updated explode.h, then i tried using the outdated(mario64.h) and get the same errors like up there. Is something wrong with the compiler?
|