开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜