[Vorbis-dev] Questions about vorbis linking

Ralph Giles
2004-11-18T09:48:23Z

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 1

The 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