#47331 - Sausage Boy - Thu Jul 07, 2005 6:01 pm
I have a tricky problem with my toolchain. It compiles fine as long as it doesn't have to use anything from external .o's. The linker will fail with error messages like this:
If I have resources like bg.raw, and try to access bg_raw, it gives me "undefnied reference to bg_raw", even though the .o sits properly in build.
It does this to everything I try to compile.
Please, help me!
_________________
"no offense, but this is the gayest game ever"
Code: |
D:\ndsdev\projects\template>make linking binary arm-elf-g++ -specs=ds_arm9.specs -g -mthumb -mthumb-interwork -mno-fpu -Wl,-Map, template.map bg.pal.o bg.raw.o bg.map.o main.o -L/d/ndsdev/Toolchain/libnds/lib -lnds9 -o /d/ndsdev/projects/template/template.elf d:/ndsdev/Toolchain/libnds/lib\libnds9.a(console.o): In function `consoleInitDefault': d:/ndsdev/Toolchain/libnds/source/arm9/console.c:143: undefined reference to `default_font_bin' collect2: ld returned 1 exit status make[1]: *** [/d/ndsdev/projects/template/template.elf] Error 1 make: *** [build] Error 2 |
If I have resources like bg.raw, and try to access bg_raw, it gives me "undefnied reference to bg_raw", even though the .o sits properly in build.
It does this to everything I try to compile.
Please, help me!
_________________
"no offense, but this is the gayest game ever"