What is difference between static library and dynamic library

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shariquehabib
    New Member
    • Oct 2006
    • 22

    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
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by shariquehabib
    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

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      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.

      Comment

      Working...