difference between static and dynamic library in unix
what is the difference between static and dynamic lib开发者_如何学Crary in unix? how can i use libraries in unix?
Static libraries are linked into your executable at link time so are fixed at that point.
For dynamic linking, only a reference to the library is linked in at link time. The dynamic library (the actual code) is linked to your executable at load time, when you run your program.
That means you can change the dynamic library at any time and you'll use the new one the next time you load the program.
See here for more detail.
精彩评论