Help about error in linking to libspeex.a
Mashal al-shboul <[email protected]> Tue, 6 Mar 2012 12:16:25 -0800 (PST)
| Newsgroups | gmane.comp.audio.compression.speex.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the reply, i added (LDFLAGS += -L/usr/local/lib -lspeex -lm) to Makefilebut the error is still appearing ! /tmp/ccDFH8gi.o(.text+0x179c): In function `main': : undefined reference to `BlinkC$speex_bits_init' collect2: ld returned 1 exit status make: *** [exe0] Error 1 i am trying to guess what is missed to correctly link to the lib .Do you have suggestions? Regards, Mash'al ________________________________ From: "[email protected]" <[email protected]> To: [email protected] Sent: Tuesday, March 6, 2012 10:00 PM Subject: Speex-dev Digest, Vol 94, Issue 3 Send Speex-dev mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://lists.xiph.org/mailman/listinfo/speex-dev or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Speex-dev digest..." Today's Topics: 1. Help about error in linking to libspeex.a (Mashal al-shboul) 2. Re: Help about error in linking to libspeex.a (Yanick Bourbeau) ---------------------------------------------------------------------- Message: 1 Date: Tue, 6 Mar 2012 10:56:11 -0800 (PST) From: Mashal al-shboul <[email protected]> Subject: [Speex-dev] Help about error in linking to libspeex.a To: "[email protected]" <[email protected]> Cc: "[email protected]" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20120306/be402f53/attachment.html ------------------------------ Message: 2 Date: Tue, 06 Mar 2012 14:06:15 -0500 From: Yanick Bourbeau <[email protected]> Subject: Re: [Speex-dev] Help about error in linking to libspeex.a To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" 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 > [email protected] > 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-0001.htm ------------------------------ _______________________________________________ Speex-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/speex-dev End of Speex-dev Digest, Vol 94, Issue 3 **************************************** _______________________________________________ Speex-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/speex-dev