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 mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users