View unanswered posts | View active topics
|
Page 1 of 1
|
[ 3 posts ] |
|
Author |
Message |
RichAlgeni
|
Post subject: This may be a strange question, but... Posted: Mon Sep 21, 2020 7:57 pm |
|
Joined: Wed Sep 22, 2010 1:50 am Posts: 811 Location: Bradenton, FL
|
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.
|
|
Top |
|
 |
skywalk
|
Post subject: Re: This may be a strange question, but... Posted: Mon Sep 21, 2020 10:09 pm |
|
Joined: Wed Dec 23, 2009 10:14 pm Posts: 3377 Location: Boston, MA
|
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
|
|
Top |
|
 |
idle
|
Post subject: Re: This may be a strange question, but... Posted: Tue Sep 22, 2020 3:28 am |
|
Joined: Fri Sep 21, 2007 5:52 am Posts: 3556 Location: New Zealand
|
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
|
|
Top |
|
 |
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 15 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|