Cross platform plugin architecture
Hi all,
(Very) junior C++ developer here. There's something I've been thinking of trying, but am really unsure how to go about it. I'm thinking along the lines of having a main binary in c++ which contains a base 'plugin' class, which may be subclassed to fill in implementation details for various plugins. So far so good.
But ideally what I would like would be to load up the subclass at runtime to cut down the size of the main program, accessing members through references to the superclass in the main code. Would I have to produce libraries for each platform? If so where could I find out how to do this? I'm sure this is very naive and not nearly as simple as I would hope, but I'd really appreciate any pointers in the right direction to some relevant articles perhaps, I'm having trouble finding anything useful with Google.
Thanks for reading, and hello btw (my first post)
Cheers!