[Libav-user] Linking error with FFmpeg 3.1.1

Fermín Ayuso Márquez fayuso83 at yahoo.es
Mon Jul 11 11:31:49 CEST 2016


Hello!
I've just compiled new version of FFmpeg (3.1.1). I'm using the resulting libraries to decode video from ip cameras. Compilation of FFmpeg was OK, but when I try to use them in my own program, I always have multiple linking errors like this:Error    1    error LNK2019: unresolved external symbol _FreeContextBuffer at 4 referenced in function _tls_shutdown_client    C:\***\libavformat.lib(tls_schannel.o)

My configure line is: 
./configure --toolchain=msvc --yasmexe='../dependencies/yasm/yasm.exe' --prefix=ffmpeg/ --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-avdevice --disable-encoders
I tried './configure --toolchain=msvc' too, but linking errors persist.

If I use the --disable-network option, the linking errors disappear, but I can't use functions like "avformat_open_input" (my code use it).
Can anyone help me?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160711/72b467e4/attachment.html>


More information about the Libav-user mailing list