Linkage error

Brad King brad.king at kitware.com
Wed Feb 15 19:03:00 CET 2006


Paulo Jorge Guedes wrote:
> I'm having a build error in kdeui:
> 
> d000310.o(.text+0x0): multiple definition of `bool
> KConfigBase::readEntry<bool>(char const*, bool const&) const'
> CMakeFiles/kdeui.dir/ktoolbar.obj(.text$_ZNK11KConfigBase9readEntryIbEET
> _PKcRKS1_[bool KConfigBase::readEntry<bool>(char const*, bool const&)
> const]+0x0):ktoolbar.cpp: first defined here
> d000311.o(.text+0x0): multiple definition of `int
> KConfigBase::readEntry<int>(char const*, int const&) const'
> CMakeFiles/kdeui.dir/ktoolbar.obj(.text$_ZNK11KConfigBase9readEntryIiEET
> _PKcRKS1_[int KConfigBase::readEntry<int>(char const*, int const&)
> const]+0x0):ktoolbar.cpp: first defined here
> collect2: ld returned 1 exit status

There seem to be some missing "inline" keywords to make those 
specializations and instantiations weak.  I've attached a patch which 
I'll commit if it works for you too.

-Brad
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kdecore_inline.patch
Url: http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060215/36bdef72/attachment.ksh 


More information about the Kde-buildsystem mailing list