Chapter 7. Libraries

Libraries are groups of code modules organized in a reusable way. This chapter introduces how they are built, reused, and designed.

7.1

Code Containers

170

7.2

Reusing Other Libraries

171

7.3

Organizing Libraries: Dependency Management

173

7.4

Installing Libraries: A Lab Exercise

176

7.5

Frameworks and Components

178

Libraries generally contain code that has already been designed, tested, and compiled, and can be easily linked into your application. Libraries are essential for making software reuse possible. They can be packaged in a number of different ways, such as

  1. Source code

  2. Binary format (dynamic library, shared object, static library, run-time library), called lib for short.

  3. lib + header files (sometimes referred to as “-dev” or “-devel” ...

Get An Introduction to Design Patterns in C++ with Qt 4 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.