difference between static and dynamic library in unix

后端 未结 1 1291
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-06 20:06

what is the difference between static and dynamic library in unix? how can i use libraries in unix?

相关标签:
1条回答
  • 2021-01-06 20:50

    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 讨论(0)
提交回复
热议问题