Delay loading Dlls

Questions that occur when trying to compile FFmpeg.
Post Reply
darknight201
Posts: 1
Joined: Fri Feb 21, 2014 3:37 pm

Delay loading Dlls

Post by darknight201 » Fri Feb 21, 2014 3:46 pm

I'm building a DLL library that has dependencies on the dynamic FFMpeg libraries. Everything works as expected. However, I recently tried to delay load the FFMpeg libraries, but I keep receiving the linker warnings such as:
LINK : warning LNK4199: /DELAYLOAD:avformat-55.dll ignored; no imports found from avformat-55.dll

My library still runs as expected, however FFMpeg is not being delay loaded. Dependency Walker confirms that avformat-55.dll is required, but not marked as a delay-loaded dependency.

I'm currently building with VS 2010 and the 20140221 win32 shared build of FFMpeg

djnrichmond
Posts: 3
Joined: Thu Apr 17, 2014 9:00 pm

Re: Delay loading Dlls

Post by djnrichmond » Thu Apr 17, 2014 9:05 pm

did you ever receive a reply to this post or any other response?
Thanks

djnrichmond
Posts: 3
Joined: Thu Apr 17, 2014 9:00 pm

Re: Delay loading Dlls

Post by djnrichmond » Sun Apr 20, 2014 9:49 am

There seems to be a problem with the lib files supplied as part of the downloads.

Simply recreate them by using the MS tool as follows:

lib /def:c:\ffmpeg64\lib\avcodec-55.def /out:c:\ffmpeg64\lib\avcodec.lib /machine:x64

mcmtroffaes
Posts: 2
Joined: Fri Mar 24, 2017 1:02 pm

Re: Delay loading Dlls

Post by mcmtroffaes » Fri Mar 24, 2017 1:09 pm

Apologies for the post necromancy, but I just ran exactly into this same problem, and I can confirm that the solution provided by djnrichmond perfectly fixed the problem for me on the 20170321 win32 and win64 builds.

Post Reply
'