On Wednesday, 17 July 2013 21:42:04 CEST, Pali Rohár wrote:
My current code have common "interface" classes for password and
addressbook plugins. Because trojita working only with pointers
of these common objects, code of interface classes must be
statically linked into trojita executable binary.
I don't follow here.
But plugin implementation inherit from common interface class, so
constructor (and other qobject moc methods) must be accessible
from plugin shared library.
So there are two possible methods:
1. static link code of interface classes to both trojita
executable and to plugin shared library
2. link interface code only to trojita executable and export
symbols to be accessible by loaded libraries
Would the following work?
3) Move the common code into a shared library and have both
trojita-the-library and any plugin link with said shared library.
Jan
--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/