linking problem - cannot find libraries even though searchpath se ems OK!
Kai Ruottu
kai.ruottu@luukku.com
Wed Oct 17 08:37:00 GMT 2001
"Larsen, Morten ActeNO" wrote:
>
> I recently downloaded the GNU ARM-ELF toolsuite from http://www.ocdemon.com
> for Win32 platforms (w. Cygwin). Making the demo program was no problem,
> and all tools seem to function properly (Insight debugger too!)
>
> But, trying to use libraries doesn't work!
> Here's the link step command line:
> ----------------------------------------------------------------------------------------------------
> /usr/local/bin/arm-elf-ld -L/usr/local/arm-elf/lib -Ttext 0x2018000 -e 0x2018000 -g -v -o ANGEL_OBJ
> /pio_test.bin ANGEL_OBJ/in_main.o ANGEL_OBJ/asm_path.o32 ANGEL_OBJ/in_eb40.o32 ANGEL_OBJ/in_reset.o
> 32 ANGEL_OBJ/pio_test.o -llib32 -langel -llibc -llibgcc
> GNU ld version 2.10 (with BFD 2.10)
> /usr/local/bin/arm-elf-ld: cannot find -llib32
> make[1]: *** [pio_test] Error 1
> make[1]: Leaving directory `/usr/local/arm-elf/Examples/pio_test'
> make: *** [all] Error 2
> ----------------------------------------------------------------------------------------------------
I remember downloading the same toolchain and it totally missing all the C-libraries...
> Obviously, the linker doesn't find the .lib/.a files necessary,
> but I have even tried to put these in the same directory at no avail.
> And, from running GCC with the "--print-search-dirs" option,
> it looks as if the path to the library (="/usr/local/bin/arm-elf-ld")
> indeed IS included in the default searchpath!
But are there any libs?
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list