Typically, shared library for unix contains both
executable and link informations. But Windows
shared library (DLL) only contains executable
informations so linker for Windows generates
informations for linking and it is called
import library which has 'lib' extension.
Or static library also has 'lib' extension.
If you wanted to know differences between
shared library and static library, executable
informations for shared library can be dynamically
loaded in execution time and its codes can be
shared for all programs which uses it. So
the size of executable file and memory occupied
by the shared 'code' are decreased if a shared
library is used. But if static library is used,
only needed functions or symbols are linked but
a routine contained in an executable file cannot
be shared by another program.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.