shared library

Ready-made code that many programs load at run time instead of each carrying its own copy.

In more detail

On Linux they are .so files, such as the C library, that programs load when they start. Upgrading a shared library updates every program that uses it at once, but a version different from the one a program expects can make it fail. Container images and statically linked programs avoid this by carrying the exact libraries they need.

Example

On Windows, shared libraries are DLL files.

Related terms

Taught in

References