#3352 - ZhouChang - Sun Feb 23, 2003 11:44 am
Code: |
D:\cygwin\home\gba\switch>make arm-agb-elf-gcc -Wall -c -o startup.o startup.c arm-agb-elf-ld -T lnkscript -o main.elf crt0.o startup.o arm.o util.o zxfont.o -Map System.map startup.o: In function `schedule': startup.o(.text+0x2ac): undefined reference to `__umodsi3' startup.o(.text+0x310): undefined reference to `__umodsi3' make: *** [main.elf] Error 1 |
I use DevKitAdv tool chain in windows,here is error code:
Code: |
if ( ( ((time_ticks - ptask->itime) % ptask->period == 0 )
|| ptask->pexecute < ptask->execute ) && (time_ticks > ptask->itime)) { if ( (time_ticks - ptask->itime) % ptask->period == 0 ) ptask->pexecute = 0; ptask->ready = 1; } else { ptask->ready = 0; } |
when remove these codes then there is no error.