cannot find -lg when linking hello_world.elf
Posted: Tue Jan 11, 2011 2:20 am
I've just installed devkitARM using the "Alternative installation script" at http://devkitpro.org/wiki/Getting_Started/devkitARM. I'm running OS X 10.6.6. I tried make-ing examples/nds/hello_world, but I get an error during linking (hello_world.elf): cannot find -lg. Here's the full output:
What do I need to do in order to build and link successfully? Thanks for the help.
Code: Select all
main.cpp
arm-eabi-g++ -MMD -MP -MF /opt/devkitpro/examples/nds/hello_world/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/opt/devkitpro/examples/nds/hello_world/include -I/opt/devkitpro/examples/nds/hello_world/build -I/opt/devkitpro/libnds/include -I/opt/devkitpro/libnds/include -I/opt/devkitpro/examples/nds/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /opt/devkitpro/examples/nds/hello_world/source/main.cpp -o main.o
linking hello_world.elf
/opt/devkitpro/devkitARM/lib/gcc/arm-eabi/4.5.1/../../../../arm-eabi/bin/ld: cannot find -lg
collect2: ld returned 1 exit status
make[1]: *** [/opt/devkitpro/examples/nds/hello_world/hello_world.elf] Error 1
make: *** [build] Error 2