#112993 - thing - Fri Dec 22, 2006 6:47 am
Hello,
I'm new to NDS development (which means I'm a noob) and I'm trying to recompile Dragonming's libFB and its 'sample1' for the devkitARM 19b but I'm getting problems. Using the supplied Makefile, libFB compiles with flag '-fPIC' for position independent code, but that makes the linker crash when compiling 'sample1' with message:
If I remove '-fPIC' from libFB makefile, 'sample1' compiles fine, but doesn't run appropriately on dualis nor no$gba (sorry, my gear to run homebrew on my NDS is on its way). The precompiled 'sample1.nds' from Dragonmind's website runs fine on both emulators, though...
I couldn't find anything similar to this in this forum, which makes me think that I'm asking something trivial (sorry if that's the case).
Any ideas to help me get past this error will be greatly appreciated.
Thanks a lot,
Thing.
I'm new to NDS development (which means I'm a noob) and I'm trying to recompile Dragonming's libFB and its 'sample1' for the devkitARM 19b but I'm getting problems. Using the supplied Makefile, libFB compiles with flag '-fPIC' for position independent code, but that makes the linker crash when compiling 'sample1' with message:
Code: |
arm-eabi-g++ -MMD -MP -MF /home/Abe/nds/projects/libFB_sample1/build/arm9.d -g -Wall -O2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/home/Abe/nds/projects/libFB_sample1/include -I/home/Abe/nds/projects/libFB_sample1/build -Ic:/util/nds/devkitPro/libfb/include -Ic:/util/nds/devkitPro/libnds/include -Ic:/util/nds/devkitPro/libfb/include -Ic:/util/nds/devkitPro/libnds/include -I/home/Abe/nds/projects/libFB_sample1/build -DARM9 -fno-rtti -fno-exceptions -c /home/Abe/nds/projects/libFB_sample1/source/arm9.cpp -o arm9.o
linking libFB_sample1.elf c:/util/nds/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld.exe: error: no memory region specified for loadable section `.rel.dyn' |
If I remove '-fPIC' from libFB makefile, 'sample1' compiles fine, but doesn't run appropriately on dualis nor no$gba (sorry, my gear to run homebrew on my NDS is on its way). The precompiled 'sample1.nds' from Dragonmind's website runs fine on both emulators, though...
I couldn't find anything similar to this in this forum, which makes me think that I'm asking something trivial (sorry if that's the case).
Any ideas to help me get past this error will be greatly appreciated.
Thanks a lot,
Thing.