An example for a C (C99) plugin system. It can load/unload plugins at runtime and call functions from them.
To build the project:
make
To build and test the project:
make test
To run the project and load the plugin1: Note: You can change the plugin name to load another plugin (plugin2).
./main plugin1
If you want to contribute to this project, you can do it by opening a pull request or an issue.
- linux-dlopen-system-call-c
- dlopen_sample.c
- alternatives-to-dlsym-and-dlopen-in-c
- sample-cpp-plugin
- how-much-overhead-can-the-fpic-flag-add
See the LICENSE document.