what is the difference between linking and loading in c language

后端 未结 7 1661
庸人自扰
庸人自扰 2021-02-04 06:15

Does linking and loading of the the dynamic libraries both happen at runtime? or is it that only loading of the library happens at run time?

7条回答
  •  既然无缘
    2021-02-04 07:04

    Windows and Unix systems use completely different approaches to Dynamic libraries.

    Windows DLLs are not linked. Therefore, you cannot share static objects across DLLs. It's just like a separate program in your address space.

    Unix shared objects are really "linked" in run time, just as different modules of the same project, performing symbol resolution.

提交回复
热议问题