jeudi 26 mars 2015

What is a good C++ plugin architecture

Using GNU autotools, how can it be made it?


Some ideas that comes to my mind are:




  • Using static libraries, so that we can specify path of the library when running configure so the "plugin" is added it is at compilation time




  • Loading dynamic libraries during execution, the path of the libraries can be specify at runtime.




In the language side, I think that making some sort of virtual class or interface that the library can inherit may do the trick.


Are those two ways appropriate, is it there any standard way or pattern for dealing with this situation??


Aucun commentaire:

Enregistrer un commentaire