CHAPTER 7

image

Locating the Libraries

The idea of binary code sharing is at the core of the concept of libraries. Somewhat less obvious is that it typically means that the single copy of the library binary file will reside in a fixed location on a given machine, whereas plenty of different client binaries will need to locate the needed library (either at build time or at runtime). In order to address the issue of locating the libraries, a variety of conventions have been devised and implemented. In this chapter, I will discuss the details of these conventions and guidelines.

Typical Library Use Case Scenarios

The use of libraries has proven to be ...

Get Advanced C and C++ Compiling now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.