[Libav-user] FFMPEG - Undefined reference to 'av_...()'

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Nov 2 13:40:07 CET 2012

Lumping 4Ever <lumpings at ...> writes:

> ./configure --disable-yasm --enable-shared

Unrelated to your question:
Why do you use --disable-yasm ?
(It is a bad idea.)

> I got the library files (.a)

Why are you using --enable-shared (above) if you want 
to use the .a files?


> extern "C"{   #include "libavcodec/avcodec.h" 
>  #include "libavutil/mathematics.h"}
> extern "C" int SDL_main(int argc, char *argv[]);
> int main(int argc, char *argv[]){
>     av_register_all();

I don't think this is supposed to work, 
av_register_all() is defined in libavformat/avformat.h 
which you do not include.

Your mailer may be completely broken, please see how 
your message arrives:
Consider reading http://ffmpeg.org/contact.html again.

Carl Eugen

More information about the Libav-user mailing list