__irq_flagsaux
Posted: Mon Jun 14, 2010 10:37 pm
I recently tried to compile some code made by the SuperCard team that has some relation to resetting with their newest product, the DSTWO (SDK is planned to be released). ATM, it won't compile because of an undefined reference to '__irq_flagsaux' (as well as mistypes with some functions, and missing libraries they haven't released). Checking the libnds source, I can see it being referenced, but could see no trace of where it is defined, though in interrupts.h, there is the line 'extern vuint32 __irq_flagsaux[];'. Is this still being used, or is it old code that has been left in but has no purpose in our general DS programming and doesn't get included during compile?
Code: Select all
"make" -C arm7
make[1]: Entering directory `/c/for_dstwo_reset/arm7'
reset_patch.bin
arm7_main.c
arm-eabi-gcc -MMD -MP -MF /c/for_dstwo_reset/arm7/build/arm7_main.d -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -mthumb -I/c/for_dstwo_reset/arm7/include -I/c/for_dstwo_reset/arm7/data -I/c/devkitPro/libnds/include -I/c/for_dstwo_reset/arm7/build -DARM7 -c /c/for_dstwo_reset/arm7/source/arm7_main.c -o arm7_main.o
linking for_dstwo_reset.arm7.elf
c:/devkitPro/libnds/lib\libnds7.a(interruptDispatcher.o): In function `IntrRet':
/Users/davem/projects/devkitpro/libnds-master/libnds/arm7/../source/common/interruptDispatcher.s:128: undefined reference to `__irq_flagsaux'
collect2: ld returned 1 exit status
make[2]: *** [/c/for_dstwo_reset/arm7/for_dstwo_reset.arm7.elf] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/for_dstwo_reset/arm7'
"make": *** [arm7/for_dstwo_reset.elf] Error 2
> Process Exit Code: 2
> Time Taken: 00:01