Why are static and dynamic linkable libraries different?

前端 未结 6 1279
独厮守ぢ
独厮守ぢ 2021-01-31 03:41

If both of them contain compiled code, why can\'t we load the \"static\" files at runtime and why can\'t we link with the dynamic libraries at compile time? Why is there a need

6条回答
  •  南方客
    南方客 (楼主)
    2021-01-31 04:30

    The difference is:

    • Static libaries and compiled and linked
    • Dynamic libraries are linked

    References

    • Avoiding LD_LIBRARY_PATH
    • Shared Libraries HOWTO

提交回复
热议问题