I have multiple classes that all derive from a base class, now some of the derived classes will not be compiled depending on the platform. I have a class that allows me to return an object of the base class, however now all the names of the derived classes have been hard coded.
Is there a way to determine what classes have been compiled, at run-time preferably, so that I can remove the linking and instead provide dynamically loadable libraries instead.
Are you looking for C++ runtime class registration? I found this link (backup).
That would probably accomplish what you want, I am not sure about the dynamically loaded modules and whether or not you can register them using the same method.