|
Boost Users : |
From: Stefan Naewe (stefan.naewe_at_[hidden])
Date: 2020-05-18 06:36:17
On Sun, May 17, 2020 at 01:10:39PM -0700, Nicholas Yue via Boost-users wrote:
> Hi,
>
> I am currently able to load each plugin in a given shared library. i.e. one
> plugin for each corresponding *.so/*.dll file
>
> However, as the number of plugins increases, I am wondering if there is a way
> to structure my plugins so that it all resides in a single *.so/*.dll file
>
> Additionally, how should one create the individual plugins in a single *.so/
> *.dll to be able to call their static method ?
>
> I have not found such examples so I am not sure if I am using the wrong search
> terms or it is currently not supported by design in BoostDLL.
Create a class for each plugin and a factory function for each
of the plugin classes.
I've done that and it works like a charm.
HTH
Stefan
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net