[Kde-pim] Re: implicit destructor not found at link time
Kevin Krammer
kevin.krammer at gmx.at
Thu Apr 28 12:13:16 BST 2011
On Thursday, 2011-04-28, Ben Taylor wrote:
> 2011/4/28 Kevin Krammer <kevin.krammer at gmx.at>:
> > Hi Ben,
> >
> > On Thursday, 2011-04-28, Ben Taylor wrote:
> >> Compling KDEpim on Solaris 10 with Sun Studio 12.1, I get the
> >> following link error:
> >>
> >> Undefined first referenced
> >>
> >> symbol in file
> >>
> >> KOrg::CalendarDecoration::Decoration::~Decoration()
> >> ../lib/libkorganizer_core.so.4.6.0
> >> ld: fatal: Symbol referencing errors. No output written to korganizer
> >> make[2]: *** [korganizer/korganizer] Error 1
> >> make[1]: *** [korganizer/CMakeFiles/korganizer.dir/all] Error 2
> >>
> >> Now, I believe this to be a compiler bug, that does properly instantiate
> >> the impliciit destructor. Could someone suggest the explicit destructor
> >> so that I can finish compiling KDEpim?
> >
> > Assuming you are working with a checkout from git, can you put a
> > respective patch for review up on git.reviewboard.kde.org?
>
> Right now I'm just trying to finish compiling KDE4.6.2 modules. But I
> will be happy to post something on the review board if I get some
> suggestions. I'm a C++ novice, so complicated topics like working
> around this kind of problem is something I need help with. It's likely
> that the compiler bug is either optimizing out the implicit destructor,
> or just not instantiating it.
>
> Which is why I think I need an explicit instantiation of the
> destructor for this.
> My attempts to fix this so far, have failed (and not surprising, really)
I see.
The easiest approach would be to find the header where
KOrg::CalendarDecoration::Decoration is declared and add
~Decoration() {}
to the public section of class Decoration.
If that works, a proper fix would be to just declare
~Decoration();
and put an empty implementation into the associated .cpp file.
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110428/b7388581/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list