Linux/Unix static lib 和 shared lib

http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

http://www.anyshare.org/open/229.html

http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

  1. Static libraries (.a): Library of object code which is linked with, and becomes part of the application.
  2. Dynamically linked shared object libraries (.so): There is only one form of this library but it can be used in two ways.
    1. Dynamically linked at run time but statically aware. The libraries must be available during compile/link phase. The shared objects are not included into the executable component but are tied to the execution.
    2. Dynamically loaded/unloaded and linked during execution (i.e. browser plug-in) using the dynamic linking loader system functions.
 

Library name with lib prefix, command will not include prefix/suffix.



你可能感兴趣的:(Linux/Unix static lib 和 shared lib)