A question which frequently arises among Unix C++ programmers is how to load C++ functions and classes dynamically using the dlopen API.
In fact, that is not always simple and needs some explanation. That's what this mini HOWTO does.
An average understanding of the C and C++ programming language and of the dlopen API is necessary to understand this document.
This HOWTO's master location is http://www.isotton.com/howtos/C++-dlopen-mini-HOWTO/.
This document, C++ dlopen mini HOWTO, is copyrighted (c) 2002 by Aaron Isotton. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.
No liability for the contents of this document can be accepted. Use the concepts, examples and information at your own risk. There may be errors and inaccuracies, that could be damaging to your system. Proceed with caution, and although this is highly unlikely, the author(s) do not take any responsibility.
All copyrights are held by their by their respective owners, unless specifically noted otherwise. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark. Naming of particular products or brands should not be seen as endorsements.
In this document, I have the pleasure of acknowledging (in alphabetic order):
Joy Y Goodreau <joyg (at) us.ibm.com> for her editing.
D. Stimitis <stimitis (at) idcomm.com> for pointing out a few issues with the formatting and the name mangling, as well as pointing out a few subtleties of extern "C".
Feedback is most certainly welcome for this document. Send your additions, comments and criticisms to the following email address: <aaron@isotton.com>.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |