Page 1 of 1

This may be a strange question, but...

Posted: Mon Sep 21, 2020 7:57 pm
by RichAlgeni
Why are .libs so much smaller than .dlls? At least in Windows.

For instance, Windows 10 1904, winhttp.lib is 17,924 bytes long. But winhttp.dll is 585,728 bytes long.

Re: This may be a strange question, but...

Posted: Mon Sep 21, 2020 10:09 pm
by skywalk
My dumb analogy would be dll = exe, lib = source code.

Re: This may be a strange question, but...

Posted: Tue Sep 22, 2020 3:28 am
by idle
Dll's may have the CRT and other dependencies linked into it so it can work across Visual studio versions, static libs often don't