468,512 Members | 1,423 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

What is difference between static library and dynamic library

Hi All,

Can any one let me know the correct diffrence between static library and dynamic library while using C language?

-------------
Sharique
Feb 20 '08 #1
2 8761
gpraghuram
1,275 Expert 1GB
Hi All,

Can any one let me know the correct diffrence between static library and dynamic library while using C language?

-------------
Sharique

Static library is the one when you link that with your executable it gets bundled along with it and the excutable size will be more.

Dynamic library is the one in which the library is only linked and during execution also it is only linked and if u are running more than one executable which uses the shared library then there will be only one copy of it in memory and all executables will only have a link to it

Raghuram
Feb 20 '08 #2
weaknessforcats
9,207 Expert Mod 8TB
The dynamic library allows you to choose the function to call at run time. A static library requires the function to be known at compile time.
Feb 20 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

40 posts views Thread by vishnu | last post: by
6 posts views Thread by Andrew S. Giles | last post: by
13 posts views Thread by Jason Huang | last post: by
669 posts views Thread by Xah Lee | last post: by
12 posts views Thread by TC | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.