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.
This may be a strange question, but...
- RichAlgeni
- Addict
- Posts: 914
- Joined: Wed Sep 22, 2010 1:50 am
- Location: Bradenton, FL
Re: This may be a strange question, but...
My dumb analogy would be dll = exe, lib = source code.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: This may be a strange question, but...
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
Windows 11, Manjaro, Raspberry Pi OS