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 with useful functions and install them on the system. Knowing how to make and install libraries enables you to share your functions with others in a standardized way.
In this chapter, we'll cover...