#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.
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.