It is currently Sat Dec 05, 2020 6:38 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: This may be a strange question, but...
PostPosted: Mon Sep 21, 2020 7:57 pm 
Offline
Addict
Addict
User avatar

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
 Profile  
Reply with quote  
 Post subject: Re: This may be a strange question, but...
PostPosted: Mon Sep 21, 2020 10:09 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3347
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
 Profile  
Reply with quote  
 Post subject: Re: This may be a strange question, but...
PostPosted: Tue Sep 22, 2020 3:28 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3554
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
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 18 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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye