 |
Building Shared Libraries |
|
Building Shared Libraries |
|
|
Building shared libraries for Linux is often considered a black art. In this
article, Eric explains five simple steps to producing a standard Linux shared
library, and tells the curious where to find more information.
by Eric Kasten
Shared libraries are probably most often used because they allow for the creation of shared executables, which take less disk space. They also allow the compression of multiply defined global variables into a single instance of the variable that all program modules share. Also possible is the creation of a compatible, drop-in replacement for an existing shared library. Improvements or fixes in the replacement library are then immediately available to executables the library is linked with. This last possibility is beyond the scope of this article.
Dynamically linked libraries (DLLs) have become an important part of the Linux system. Even though ELF (the executable and linking format designed for Unix SVR4), which makes creating shared < 1 > < 2 > |
|
|
在百度搜索:Building Shared Libraries
|