I am writing an application that supports plugins. In the application itself, an instance of a certain class ( MyQObject ) is used.
It is necessary that any plug-in has access to public methods of this class. The problem is that in runtime when you try to call an instance method of this class, it leads to an error
"... symbol lookup error ... undefined symbol: _ZN9MyQObject9testCalllEv".
NB: In the plugin method, a link to the class instance is passed and the method is called (leads to an error). Moreover, the value of the property of the class instance gets no problem.
Code showing the error (Qt4) can be found here: github