<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div>Hi All,</div><div>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:</div><div><span style="font-weight: bold;">/usr/lib/gcc/xscale-elf/3.4.3/../../../../xscale-elf/bin/ld: cannot find -lspeex</span><br style="font-weight: bold;"><span style="font-weight: bold;">collect2: ld returned 1 exit status</span><br style="font-weight: bold;"><span style="font-weight: bold;">make: *** [exe0] Error 1</span></div><div><br style="font-weight: bold;"></div><div>i passed ./configure options as : <br>./configure --host=xscale-elf</div><div><br></div><div>it's likely that the linker can't
see libspeex.a , and i also tried the line <span style="font-weight: bold;">LDFLAGS += /usr/local/lib/libspeex.a -lm</span> <span><span><span>in Makefile but got another error(also in linking):</span></span></span></div><div><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><br></span></span></span></div><div><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;">/tmp/ccvi7Pns.o(.text+0x179c): In function `main':<br>: undefined reference to `BlinkC$speex_bits_init'<br>collect2: ld returned 1 exit status<br>make: *** [exe0] Error 1</span></span></span></div><div><br><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"></span></span></span></div><div><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;">WOULD YOU PLEASE HELP ME IN THIS PROBLEM, HOW CAN I DEFINE
libspeex.a CORRECTLY TO THE LINKER?</span></span></span><br></div></div></body></html>