[Vorbis-dev] Questions about vorbis linking

Carsten Haese carsten at xiph.org
Thu Nov 18 04:49:48 PST 2004


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




More information about the Vorbis-dev mailing list