[Libav-user] Linking with libav*

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Aug 13 15:16:37 EEST 2019


Am Di., 13. Aug. 2019 um 14:11 Uhr schrieb Simon Brown
<simon.k.brown at gmail.com>:

> I have a modified version of the demuxing_decoding.c program (with ffmpeg from
> the latest git head), that I copied into a C++ file (to link it with other software that
> requires C++).  The program compiles, but when linking it fails to find the libraries,
> so produces undefined references to all the av calls that I make.

Which undefined references?

> My compile and link script is:
> gcc -o demux_decode demux_decode.cpp -L/usr/local/lib -lavformat ....

"..." is the important part here as libavformat is not self-contained.
libavutil is a requirement for all other FFmpeg libraries, libavcodec
is also needed for libavformat.

Carl Eugen


More information about the Libav-user mailing list