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

Mashal al-shboul shboul8989 at yahoo.com
Tue Mar 6 12:16:25 PST 2012


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 


More information about the Speex-dev mailing list