[Vorbis-dev] Questions about vorbis linking

Carsten Haese
2004-12-02T15:34:38Z

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