This may be a strange question, but...

Everything else that doesn't fall into one of the other PB categories.
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

This may be a strange question, but...

Post 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.
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

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

Post by skywalk »

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
User avatar
idle
Always Here
Always Here
Posts: 5042
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

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

Post 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
Windows 11, Manjaro, Raspberry Pi OS
Image
Post Reply