[Libav-user] undefined reference errors from linker

Stefano Sabatini stefasab at gmail.com
Mon Jan 21 13:51:28 CET 2013

In data Monday 2013-01-21 15:29:07 +0530, Srinath M ha scritto:
> Hi
> I am using ffmpeg version 0.11.1 with Ubuntu 10.04
> I get the following linker errors when i try to compile a program
> tld.c:(.text+0x1a7): undefined reference to `avformat_network_init'
> tld.c:(.text+0x1c9): undefined reference to `avformat_open_input'
> tld.c:(.text+0x1dc): undefined reference to `avformat_find_stream_info'
> tld.c:(.text+0x255): undefined reference to `avcodec_open2'
> tld.c:(.text+0x333): undefined reference to `avcodec_decode_video2'
> tld.c:(.text+0x525): undefined reference to `avcodec_decode_video2'
> Which version of ffmpeg should i be using?
> is this a ffmpeg issue in the first place?

Check doc/examples/Makefile, you should rely on pkg-config unless you
really know what you're doing. A basic knowledge of linking/Makefile
may also help.

More information about the Libav-user mailing list