suhaib obeidat
2007-Apr-03 23:16 UTC
[Speex-dev] Please help, very important (not for fun)
Hi All, I am a Speex novice but trying to use Speex in my Doctoral thesis. I installed Speex, was able to encode and decode files. Right now, I want to write my own cpp program that handle Speex-files. I tried to compile and run the two sample programs that come with the documentation (after having insalled the speex-devel-1.0.5-1.i386.rpm). However, when I compile. 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. Thanks a million Suhaib -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070403/9574b2de/attachment.html
Jean-Marc Valin
2007-Apr-04 02:04 UTC
[Speex-dev] Please help, very important (not for fun)
> 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.
suhaib obeidat
2007-Apr-04 10:53 UTC
[Speex-dev] Please help, very important (not for fun)
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@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