Chapter 16. Dynamic Loading

An increasingly popular way of adding functionality to a project is to give a program the capability to dynamically load plug-ins, or modules. By doing this, your users can extend your project in new ways, which even you perhaps hadn't envisioned. Dynamic loading, then, is the process of loading compiled objects into a running program and executing some or all of the code from the loaded objects in the same context as the main executable.

This chapter begins with a discussion of the mechanics of dynamic modules and how they are used, and ends with example code for very simple module loading on GNU/Linux, along with the example code for a complementary dynamically loadable module. This chapter examines the principles ...

Get GNU Autoconf, Automake, and Libtool 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.