[Speex-dev] Help about error in linking to libspeex.a

Yanick Bourbeau ybourbeau at mrgtech.ca
Tue Mar 6 11:06:15 PST 2012


LDFLAGS += -L/usr/local/lib -lspeex -lm


On 12-03-06 01:56 PM, Mashal al-shboul wrote:
> Hi All,
> i have configured speex1.2rc1 for xscale-elf (ARM architecture) ,then 
> executed MAKE and MAKE INSTALL. so, i obtained libspeex.a in the 
> /usr/local/lib with libogg.a compiled as well. but i when i link the 
> library to my program (by adding LDFLAGS += -lspeex -lm ), and try to 
> compile, i get this error:
> /usr/lib/gcc/xscale-elf/3.4.3/../../../../xscale-elf/bin/ld: cannot 
> find -lspeex
> collect2: ld returned 1 exit status
> make: *** [exe0] Error 1
>
> i passed  ./configure options as :
> ./configure --host=xscale-elf
>
> it's likely that the linker can't see libspeex.a , and i also tried 
> the line LDFLAGS += /usr/local/lib/libspeex.a -lm in Makefile but got 
> another error(also in linking):
>
> /tmp/ccvi7Pns.o(.text+0x179c): In function `main':
> : undefined reference to `BlinkC$speex_bits_init'
> collect2: ld returned 1 exit status
> make: *** [exe0] Error 1
>
> WOULD YOU PLEASE HELP ME IN THIS PROBLEM, HOW CAN I DEFINE libspeex.a 
> CORRECTLY TO THE LINKER?
>
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20120306/defcb1d5/attachment.htm 


More information about the Speex-dev mailing list