Hello: I think that I got a linking problem but I don't know how to fix it. This is the error code form make: cc grabando_pcm.o encodear_vorbis.o -o mi_servidor -lasound -lvorbis -logg encodear_vorbis.o(.text+0x42): En la funci?n `inicializar_vorbis': : undefined reference to `vorbis_encode_init_vbr' collect2: ld devolvi? el estado de salida 1 make: *** [mi_servidor] Error 1 Offcourse, I had the file /usr/include/vorbis/vorbisenc.h and the vorbis_encode_init_vbr function appears declarated. The vorbisenc.h version is 1.10 I had a kernel 2.6.5 Debian distro i686. Thanks for your time. Ulises Mendoza - Argentina.
On Thu, Nov 18, 2004 at 09:15:27AM +0100, Ulises wrote:> This is the error code form make: > cc grabando_pcm.o encodear_vorbis.o -o mi_servidor -lasound -lvorbis -logg > encodear_vorbis.o(.text+0x42): En la funci?n `inicializar_vorbis': > : undefined reference to `vorbis_encode_init_vbr' > collect2: ld devolvi? el estado de salida 1 > make: *** [mi_servidor] Error 1The encoder interface is in a separate library to help with distribution size (the encoder has a lot of tables that make it large relative to the decoder). Try '-lvorbisenc -lvorbis -logg' on your link line. -r
On Thu, 2004-11-18 at 03:15, Ulises wrote:> Hello: > I think that I got a linking problem but I don't know how to fix it. > This is the error code form make: > cc grabando_pcm.o encodear_vorbis.o -o mi_servidor -lasound -lvorbis -logg > encodear_vorbis.o(.text+0x42): En la funci?n `inicializar_vorbis': > : undefined reference to `vorbis_encode_init_vbr' > collect2: ld devolvi? el estado de salida 1 > make: *** [mi_servidor] Error 1 > > Offcourse, I had the file /usr/include/vorbis/vorbisenc.h and the > vorbis_encode_init_vbr function appears declarated.You'll need to add -lvorbisenc to your cc command line so that the linker can find the implementation of vorbis_encode_init_vbr(). -Carsten