[FFmpeg-devel] [PATCH] examples/decoding_encoding: remove unused variable "size"

Nicolas George nicolas.george at normalesup.org
Fri Apr 13 08:19:52 CEST 2012

Le quintidi 25 germinal, an CCXX, Clément Bœsch a écrit :
> Looking at the configure, the extra libraries are in Libs.private if
> FFmpeg is built with --enable-shared (which is the case in the distrib
> package).

That is normal: shared libraries track their dependencies in the NEEDED
private fields (see objdump -p). Static libraries, on the other hand, are
just a collection of object files, and linking is flat.

But for that reason, if you are linking with shared libav*, you should not
need to specify -lm. What does objdump -p say about your libavutil.so?

> Anyway, I think it's correct for the libav* to have them private, and I
> believe it's normal for third party apps to explicitly need to link
> against libm when they use math functions (even if ffmpeg uses it
> internally).

That is true. Unfortunately, that does not explain anything, since this
particular example does not use math functions.


  Nicolas George

More information about the ffmpeg-devel mailing list