Are there any differences between the way static and shared libraries are put together? For example, could code from a shared library be loaded into an executable at compile/link-time rather than at runtime, just like a static library?
Are there any differences between the way static and shared libraries are put together?
Share
Absolutely; they are very different animals. One major difference is that with archive library, you link in only what you use, but with shared library you get the entire thing.
Not easily, but tools do exist.
I wouldn’t call it “just like a static library” — the mechanics and the end result are very different.