在Linux中,shared libraries are libraries that are loaded by programs when they start. When a shared library is installed properly, all programs that start afterwards automatically use the new shared library。
可见,Linux中的shared libraries 文件为共享库,与windows下dll类似,是动态加载的。在链接动态库生成可执行文件时,并不会把动态库的代码复制到执行文件中,而是在执行文件中记录对动态库的引用。程序执行时,再去加载动态库文件。如果动态库已经加载,则不必重复加载,从而能节省内存空间。
Every shared library has a special name called the ``soname''. The soname h