Chapter 8: Creating Shared Libraries

In this chapter, we will learn what libraries are and why they are such a big part of Linux. We also learn the differences between static libraries and dynamic libraries. When we know what libraries are, we start to write our own—both static and dynamic ones. We also take a quick peek inside a dynamic library.

The use of libraries has many benefits—for example, a developer doesn't need to reinvent functions over and over again as there's often an existing function already in a library. A big advantage with dynamic libraries is that the resulting program gets much smaller in size, and the libraries are upgradable even after the program has been compiled.

In this chapter, we'll learn how to make our own libraries ...

Get Linux System Programming Techniques now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.