Z
Z
Zaur Ashurbekov2017-10-06 13:47:34
linux
Zaur Ashurbekov, 2017-10-06 13:47:34

How to include libraries on the fly in C++?

Hello Toaster!
How to connect libraries on the fly in C++ and execute code?
Example of work: we have a program and we can send commands to this program. When a command is received, the program will look for a library (plugin?) with this name and call a function in it (let's say the name is the same for all libraries) with the passing of parameters.
Why is it necessary? If you want to quickly add and remove commands without recompiling the entire program. There is a possibility?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2017-10-06
@zaurius

Static, Shared Dynamic and Loadable Linux Libraries

I
Ilya Bobkov, 2017-10-06
@heksen

For windows there is a LoadLibrary function. Linux probably has a similar solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question