jmetal88
Erm.... Woohoo!
Hey there! Anybody listening?
So, I've set up a dev environment using DevKitARM and SDL++ EABIv4, and I'm trying to compile Slaanesh's OpenTyrian port to see if I have everything in working order.
I ran into a couple of errors compiling the C files, which I quickly sorted out, and now I'm getting errors at link time that have me stumped.
They all look a bit like this:
I did a little digging, and it turns out all the undefined references are supposed to be taken care of in episodes.o, a file which is compiled from episodes.c and episodes.h in the source code.
I know the references are all in there and compiled, as when I type 'nm episodes.o' in the obj directory, I get this output at the end:
So, I figure it's an order problem, and I check the Makefile. Trouble is, episodes.o is already listed before game_menu.o. I tried moving episodes.o to the very beginning of the list, and that didn't help. I also tried it at the end (though that should be wrong) and it didn't help there, either.
So... I'm stuck. And I don't think I can ask Slaanesh because he hasn't logged in since May, and I have two other PMs I've sent him, neither of which he's replied to.
So, I've set up a dev environment using DevKitARM and SDL++ EABIv4, and I'm trying to compile Slaanesh's OpenTyrian port to see if I have everything in working order.
I ran into a couple of errors compiling the C files, which I quickly sorted out, and now I'm getting errors at link time that have me stumped.
They all look a bit like this:
Code:
obj/game_menu.o: In function `JE_cashLeft()':
game_menu.c:(.text+0x1dc): undefined reference to `weaponPort'
obj/game_menu.o: In function `JE_drawItem(unsigned char, unsigned short, unsigned short, unsigned short)':
game_menu.c:(.text+0x868): undefined reference to `options'
game_menu.c:(.text+0x87c): undefined reference to `weaponPort'
game_menu.c:(.text+0x880): undefined reference to `shields'
game_menu.c:(.text+0x884): undefined reference to `powerSys'
game_menu.c:(.text+0x888): undefined reference to `ships'
I did a little digging, and it turns out all the undefined references are supposed to be taken care of in episodes.o, a file which is compiled from episodes.c and episodes.h in the source code.
I know the references are all in there and compiled, as when I type 'nm episodes.o' in the obj directory, I get this output at the end:
Code:
00010d0c b options
0001098c b powerSys
000117b4 b shields
00010aa4 b ships
00010234 b special
U sprintf
0000f418 b weaponPort
00000008 b weapons
So, I figure it's an order problem, and I check the Makefile. Trouble is, episodes.o is already listed before game_menu.o. I tried moving episodes.o to the very beginning of the list, and that didn't help. I also tried it at the end (though that should be wrong) and it didn't help there, either.
So... I'm stuck. And I don't think I can ask Slaanesh because he hasn't logged in since May, and I have two other PMs I've sent him, neither of which he's replied to.