[Kde-finance-apps] [kde-finance-apps] Qt Plugins + CMake linking help?

Fernando Vilas fvilas at iname.com
Sun Jun 27 23:03:13 CEST 2010


On Sunday, June 27, 2010 15:44:04 Brian Cappello wrote:
> Hi everybody,
> I've been trying to get plugins working, but to no avail. To start small
> extremely small, here's a simple plugin I'm trying to make. I keep getting
> linker errors, I was hoping maybe somebody could pick up on something I'm
> missing? Below are the files and the error I'm getting. 
[...]
> 
>     virtual ~KeysInterface();
[...]
>     virtual ~TestPlugin() {}
> 
[...]
> ***** error **************
> Linking CXX executable quotebackend
> CMakeFiles/quotebackend.dir/moc_testplugin.cxx.o: In function
> `~TestPlugin':
> 
> /home/brian/quotebackend/build/backend/../../backend/testplugin.h:19:
> undefined reference to `KeysInterface::~KeysInterface()'
> /home/brian/quotebackend/build/backend/../../backend/testplugin.h:19:
> undefined reference to `KeysInterface::~KeysInterface()'
>

It's looking for the KeysInterface dtor body. You don't have one, so the 
linker never finds it. Look at the dtor for TestPlugin above.

-- 
Thanks,
Fernando Vilas
fvilas at iname.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-finance-apps/attachments/20100627/a4ef85c2/attachment.sig 


More information about the Kde-finance-apps mailing list