Mashal al-shboul
2012-Mar-06 20:16 UTC
[Speex-dev] Help about error in linking to libspeex.a
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: "speex-dev-request at xiph.org" <speex-dev-request at xiph.org> To: speex-dev at xiph.org Sent: Tuesday, March 6, 2012 10:00 PM Subject: Speex-dev Digest, Vol 94, Issue 3 Send Speex-dev mailing list submissions to ??? speex-dev at xiph.org 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 ??? speex-dev-request at xiph.org You can reach the person managing the list at ??? speex-dev-owner at xiph.org 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 <shboul8989 at yahoo.com> Subject: [Speex-dev] Help about error in linking to libspeex.a To: "speex-dev at xiph.org" <speex-dev at xiph.org> Cc: "speex-dev-request at xiph.org" <speex-dev-request at xiph.org> Message-ID: <1331060171.8097.YahooMailNeo at web65415.mail.ac4.yahoo.com> 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 <ybourbeau at mrgtech.ca> Subject: Re: [Speex-dev] Help about error in linking to libspeex.a To: speex-dev at xiph.org Message-ID: <4F566027.9020900 at mrgtech.ca> 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 > 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-0001.htm ------------------------------ _______________________________________________ Speex-dev mailing list Speex-dev at xiph.org http://lists.xiph.org/mailman/listinfo/speex-dev End of Speex-dev Digest, Vol 94, Issue 3 **************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20120306/771b50ad/attachment.htm
Hi, Maybe you are trying to compile a c++ program with gcc instead of g++? Or you are using speex_bit_init as if it was a member of your class BlinkC? In any case, you would probably receive more helpful advice if you were posting an extract of the code related to speex instead of just some obscure linker error message that does not really seem to be related to speex. Blaise 2012/3/6 Mashal al-shboul <shboul8989 at yahoo.com>:> Thanks for the reply, > i added (LDFLAGS += -L/usr/local/lib -lspeex -lm) to Makefile but 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: "speex-dev-request at xiph.org" <speex-dev-request at xiph.org> > To: speex-dev at xiph.org > Sent: Tuesday, March 6, 2012 10:00 PM > Subject: Speex-dev Digest, Vol 94, Issue 3 > > Send Speex-dev mailing list submissions to > ??? speex-dev at xiph.org > > 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 > ??? speex-dev-request at xiph.org > > You can reach the person managing the list at > ??? speex-dev-owner at xiph.org > > 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 <shboul8989 at yahoo.com> > Subject: [Speex-dev] Help about error in linking to libspeex.a > To: "speex-dev at xiph.org" <speex-dev at xiph.org> > Cc: "speex-dev-request at xiph.org" <speex-dev-request at xiph.org> > Message-ID: <1331060171.8097.YahooMailNeo at web65415.mail.ac4.yahoo.com> > 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 <ybourbeau at mrgtech.ca> > Subject: Re: [Speex-dev] Help about error in linking to libspeex.a > To: speex-dev at xiph.org > Message-ID: <4F566027.9020900 at mrgtech.ca> > 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 >> 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-0001.htm > > ------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev > > > End of Speex-dev Digest, Vol 94, Issue 3 > **************************************** > > > > _______________________________________________ > Speex-dev mailing list > Speex-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >
Reasonably Related Threads
- Help about error in linking to libspeex.a
- Need for help about using vorbis in embedded system
- using unsigned short instead of short for input frame
- converting unsigned short sample to signed short sample
- converting unsigned short sample to signed short sample