C++ dlopen mini HOWTO

Aaron Isotton

2006-03-16

Revision History
Revision 1.102006-03-16AI
Changed the license from the GFDL to the GPL. Fixed usage of dlerror; thanks to Carmelo Piccione. Using a virtual destructor in the example; thanks to Joerg Knobloch. Added Source Code section. Minor fixes.
Revision 1.032003-08-12AI
Added reference to the GLib Dynamic Module Loader. Thanks to G. V. Sriraam for the pointer.
Revision 1.022002-12-08AI
Added FAQ. Minor changes
Revision 1.012002-06-30AI
Updated virtual destructor explanation. Minor changes.
Revision 1.002002-06-19AI
Moved copyright and license section to the beginning. Added terms section. Minor changes.
Revision 0.972002-06-19JYG
Entered minor grammar and sentence level changes.
Revision 0.962002-06-12AI
Added bibliography. Corrected explanation of extern functions and variables.
Revision 0.952002-06-11AI
Minor improvements.

Abstract

How to dynamically load C++ functions and classes using the dlopen API.


Table of Contents

1. Introduction
1.1. Copyright and License
1.2. Disclaimer
1.3. Credits / Contributors
1.4. Feedback
1.5. Terms Used in this Document
2. The Problem
2.1. Name Mangling
2.2. Classes
3. The Solution
3.1. extern "C"
3.2. Loading Functions
3.3. Loading Classes
4. Source Code
5. Frequently Asked Questions
6. See Also
Bibliography