<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div><span>Thanks for the reply,</span></div><div><span>i added (LDFLAGS += -L/usr/local/lib -lspeex -lm) to Makefile</span><span class="tab"> but the error is still appearing !</span></div><div><span class="tab"><span style="font-weight: bold;">/tmp/ccDFH8gi.o(.text+0x179c): In function `main':</span><br style="font-weight: bold;"><span style="font-weight: bold;">: undefined reference to `BlinkC$speex_bits_init'</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><br></span></div><div><br><span class="tab"></span></div><div><span class="tab">i am trying to guess what is missed to correctly link to the lib .Do you have suggestions?<br></span></div><div><br><span
class="tab"></span></div><div><span class="tab">Regards,</span></div><div><span class="tab">Mash'al<br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 14pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> "speex-dev-request@xiph.org" <speex-dev-request@xiph.org><br> <b><span style="font-weight: bold;">To:</span></b> speex-dev@xiph.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, March 6, 2012 10:00 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Speex-dev Digest, Vol 94, Issue 3<br> </font> </div> <br>
Send Speex-dev mailing list submissions to<br> <a ymailto="mailto:speex-dev@xiph.org" href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> http://lists.xiph.org/mailman/listinfo/speex-dev<br>or, via email, send a message with subject or body 'help' to<br> <a ymailto="mailto:speex-dev-request@xiph.org" href="mailto:speex-dev-request@xiph.org">speex-dev-request@xiph.org</a><br><br>You can reach the person managing the list at<br> <a ymailto="mailto:speex-dev-owner@xiph.org" href="mailto:speex-dev-owner@xiph.org">speex-dev-owner@xiph.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Speex-dev digest..."<br><br><br>Today's Topics:<br><br> 1. Help about error in linking to libspeex.a (Mashal al-shboul)<br> 2. Re: Help about error in linking to
libspeex.a (Yanick Bourbeau)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Tue, 6 Mar 2012 10:56:11 -0800 (PST)<br>From: Mashal al-shboul <<a ymailto="mailto:shboul8989@yahoo.com" href="mailto:shboul8989@yahoo.com">shboul8989@yahoo.com</a>><br>Subject: [Speex-dev] Help about error in linking to libspeex.a<br>To: "<a ymailto="mailto:speex-dev@xiph.org" href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</a>" <<a ymailto="mailto:speex-dev@xiph.org" href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</a>><br>Cc: "<a ymailto="mailto:speex-dev-request@xiph.org" href="mailto:speex-dev-request@xiph.org">speex-dev-request@xiph.org</a>" <<a ymailto="mailto:speex-dev-request@xiph.org" href="mailto:speex-dev-request@xiph.org">speex-dev-request@xiph.org</a>><br>Message-ID: <<a ymailto="mailto:1331060171.8097.YahooMailNeo@web65415.mail.ac4.yahoo.com"
href="mailto:1331060171.8097.YahooMailNeo@web65415.mail.ac4.yahoo.com">1331060171.8097.YahooMailNeo@web65415.mail.ac4.yahoo.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi All,<br>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:<br>/usr/lib/gcc/xscale-elf/3.4.3/../../../../xscale-elf/bin/ld: cannot find -lspeex<br>collect2: ld returned 1 exit status<br>make: *** [exe0] Error 1<br><br>i passed? ./configure options as : <br>./configure --host=xscale-elf<br><br>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):<br><br>/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<br><br>WOULD YOU PLEASE HELP ME IN THIS PROBLEM, HOW CAN I DEFINE libspeex.a CORRECTLY TO THE LINKER?<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20120306/be402f53/attachment.html <br><br>------------------------------<br><br>Message: 2<br>Date: Tue, 06 Mar 2012 14:06:15 -0500<br>From: Yanick Bourbeau <<a ymailto="mailto:ybourbeau@mrgtech.ca" href="mailto:ybourbeau@mrgtech.ca">ybourbeau@mrgtech.ca</a>><br>Subject: Re: [Speex-dev] Help about error in linking to libspeex.a<br>To: <a ymailto="mailto:speex-dev@xiph.org" href="mailto:speex-dev@xiph.org">speex-dev@xiph.org</a><br>Message-ID: <<a ymailto="mailto:4F566027.9020900@mrgtech.ca"
href="mailto:4F566027.9020900@mrgtech.ca">4F566027.9020900@mrgtech.ca</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>LDFLAGS += -L/usr/local/lib -lspeex -lm<br><br><br>On 12-03-06 01:56 PM, Mashal al-shboul wrote:<br>> Hi All,<br>> i have configured speex1.2rc1 for xscale-elf (ARM architecture) ,then <br>> executed MAKE and MAKE INSTALL. so, i obtained libspeex.a in the <br>> /usr/local/lib with libogg.a compiled as well. but i when i link the <br>> library to my program (by adding LDFLAGS += -lspeex -lm ), and try to <br>> compile, i get this error:<br>> /usr/lib/gcc/xscale-elf/3.4.3/../../../../xscale-elf/bin/ld: cannot <br>> find -lspeex<br>> collect2: ld returned 1 exit status<br>> make: *** [exe0] Error 1<br>><br>> i passed ./configure options as :<br>> ./configure --host=xscale-elf<br>><br>> it's likely that the linker can't see libspeex.a , and i also tried <br>> the line
LDFLAGS += /usr/local/lib/libspeex.a -lm in Makefile but got <br>> another error(also in linking):<br>><br>> /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<br>><br>> WOULD YOU PLEASE HELP ME IN THIS PROBLEM, HOW CAN I DEFINE libspeex.a <br>> CORRECTLY TO THE LINKER?<br>><br>><br>> _______________________________________________<br>> Speex-dev mailing list<br>> <a ymailto="mailto:Speex-dev@xiph.org" href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br>> <a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20120306/defcb1d5/attachment-0001.htm
<br><br>------------------------------<br><br>_______________________________________________<br>Speex-dev mailing list<br><a ymailto="mailto:Speex-dev@xiph.org" href="mailto:Speex-dev@xiph.org">Speex-dev@xiph.org</a><br><a href="http://lists.xiph.org/mailman/listinfo/speex-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/speex-dev</a><br><br><br>End of Speex-dev Digest, Vol 94, Issue 3<br>****************************************<br><br><br> </div> </div> </div></body></html>