[Speex-dev] Please help, very important (not for fun)

suhaib obeidat ssobeidat at gmail.com
Wed Apr 4 10:52:06 PDT 2007


Thanks Jean,

Actually, when I said not for fun, I only wanted to emphasize it's not
something on the side. Forgive my ignorance, but how do I link to the
library ?

Yeah, I am not great in Linux either :(

Thanks for your help
Suhaib


On 4/4/07, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote:
>
> > Re: [Speex-dev] Please help, very important (not for fun)
>
> I usually only help people who have fun doing what they're doing, but
> I'll try and make an exception here...
>
> suhaib obeidat a écrit :
> > gcc sampleenc.cc
> >
> > Here is what I get:
> >
> > /tmp/ccXKa3LF.o: In function `main':
> > sampleenc.cc:(.text+0x1a): undefined reference to `speex_nb_mode'
> > sampleenc.cc:(.text+0x1f): undefined reference to `speex_encoder_init'
> > sampleenc.cc:(.text+0x43): undefined reference to `speex_encoder_ctl'
> > sampleenc.cc:(.text+0x6f): undefined reference to `speex_bits_init'
> > sampleenc.cc:(.text+0xea): undefined reference to `speex_bits_reset'
> > sampleenc.cc:(.text+0x106): undefined reference to `speex_encode'
> > sampleenc.cc:(.text+0x123): undefined reference to `speex_bits_write'
> > sampleenc.cc:(.text+0x181): undefined reference to
> `speex_encoder_destroy'
> > sampleenc.cc:(.text+0x18c): undefined reference to `speex_bits_destroy'
> > /tmp/ccXKa3LF.o:(.eh_frame+0x11): undefined reference to
> > `__gxx_personality_v0'
> > collect2: ld returned 1 exit status
> >
> >
> > Can anyone help me through the process, I am really lost.
>
> Euh, have you ever considered actually linking with the library?
>
>         Jean-Marc
>
> P.S. Although that has nothing to do with your problem, 1.2beta1 is
> generally better than version 1.0.5.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070404/e87774e4/attachment.html


More information about the Speex-dev mailing list