[Qt-interest] Plugin fails to load if I use singleton pattern
Andreas Unger
andi.unger05 at gmail.com
Mon Oct 25 22:14:09 CEST 2010
Hi all,
I have a plugin and a main singleton class, let's call it test. Test has a
method static Test * instance().
My plugin is loaded fine (it's loaded in the Test class) if I declare a
private Test* variable and initialize it in the plugin constructor or using
a setter method.
However, if I avoid using a private Test * variable in the plugin and use
Test::instance() to access the methods in the Test class, I get an undefined
symbol error. Why is this the case?
Regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101025/15e6b899/attachment.html
More information about the Qt-interest-old
mailing list