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 > Compilation problem with sbrkr.o

#63694 - ghuldan - Thu Dec 15, 2005 4:56 pm

I use makefile, crt0.S, lnkscript of AAS1.11 and devkitpro

and i obtain :

Quote:
c:\project>make
rm -f *.o project.gba project.tmp symbols.h map.out
arm-elf-as -o crt0.o crt0.S
arm-elf-as -mthumb-interwork -o AAS_Data.o AAS_Data.s
arm-elf-gcc -mthumb -03 -ffixed-r14 -funroll-loops -lLibAAS -mthumb-interwork -fomit-frame-pointe -mcpu=arm7tdmi -ffast-math -fno-exceptions -c Main.c -o Main.o
touch map.out
arm-elf-gcc -mthumb-interwork -nostartfiles -Tlnkscript -o project.tmp crt0.o AAS_Data.o Main.o -LLibAAS -lAAS
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib/interwork\libc.a(sbrkr.o): In function '_sbrk_r':
: undefined reference to '_sbrk_r'
make: *** [project.tmp] Error 1


Last edited by ghuldan on Thu Dec 15, 2005 4:58 pm; edited 1 time in total

#63695 - ghuldan - Thu Dec 15, 2005 4:57 pm

please help