gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Problem With devkitARM...

#109265 - musicman3320 - Thu Nov 16, 2006 4:49 pm

Hello all,

I am currently doing GBA development on a Mac, and until now I have been using the (apparenly outdated) devkitPRO, and I finally decided recently to switch to devkitARM. However, I am not able to get anything to compile. The compilation of all of the .c files works great, but when it comes time to link, I get the following error:

/path_to_devkitarm/arm-eabi/lib/thumb/libc.a(exit.o): In function `exit':
(.text+0x1a): undefined reference to `_exit'
/path_to_devkitarm/arm-eabi/lib/thumb/libc.a(sbrkr.o): In function `_sbrk_r':
(.text+0xe): undefined reference to `_sbrk'
collect2: ld returned 1 exit status

It appears like there is an internal problem with libc.a, but I would have a hard time believing that there is actually something wrong with an internal library like that. Do I have to define something in my files to make this work? Is it linking with an incorrect library? Any help on this is appreciated.

-Chris
_________________
-- Did you hear about the programmer that died in the shower? The directions on his shampoo said "Wash, Rinse, Repeat." He died of a stack overflow error.

#109272 - tepples - Thu Nov 16, 2006 7:02 pm

devkitARM is part of devkitPro. Which R-version are you using?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#109315 - musicman3320 - Fri Nov 17, 2006 4:25 am

I believe it is release 20, if that is what you mean. I am pretty sure it is the most recent version, as I just downloaded it within the last month or so.

-Chris
_________________
-- Did you hear about the programmer that died in the shower? The directions on his shampoo said "Wash, Rinse, Repeat." He died of a stack overflow error.