bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linker cannot find library file


From: Carlos Losada
Subject: Linker cannot find library file
Date: Thu, 30 Mar 2006 13:49:48 +0200

Hello there,

I'm encountering a problem with the arm-elf-ld linker in that it cannot locate 
a library file.  Not sure if it's a bug, but I just can't seem to resolve it.
The library file m40800_lib16 is part of the AT91 library which I'm referencing 
from my code.

The linker command is:
        $(LD) $(LDFLAGS) $(LIBPATHS) $(LIBS) crt.o main.o

where:
LDFLAGS      = -Tldscript
LIBPATHS     = -L/ecos-c/at91/software/parts/m40800/m40800_lib16_Data/optm_none
LIBS         = -lm40800_lib16 -lc

and its output is:
        arm-elf-ld -Tldscript 
-L/ecos-c/at91/software/parts/m40800/m40800_lib16_Data/optm_none -lm40800_lib16 
-lc crt.o main.o
        arm-elf-ld: cannot find -lm40800_lib16
        make: *** [ld] Error 1

I've done all of the following:
1) Checked to make sure m40800_lib16.a exists in the location specified.
2) Tried declaring the library paths as:
         -Lc:/at91/software/parts/m40800/m40800_lib16_Data/optm_none
         -Lc:\ecos-c\at91\software\parts\m40800\m40800_lib16_Data\optm_none  
(with and without double quotes)
3) Tried changing the library name to libm40800_lib16.a.
4) Tried placing the library in the local directory. (with and without lib 
prefix)
5) Tried placing library in standard location in cygwin: cygwin/lib (with and 
without lib prefix)
6) Tried invoking with arm-elf-gcc, instead of linker.

I've attached the library file in case it's of any help.


 <<m40800_lib16.a>> 
Many thanks
Carlos Losada

Attachment: m40800_lib16.a
Description: m40800_lib16.a


reply via email to

[Prev in Thread] Current Thread [Next in Thread]