Linkage error

Paulo Jorge Guedes Paulo.Guedes at artelecom.pt
Wed Feb 15 16:15:49 CET 2006


Hi,

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
make[3]: *** [bin/libkdeui.dll] Error 1
make[3]: Leaving directory `/d/kde/trunk/kdelibs'
make[2]: *** [kdeui/CMakeFiles/kdeui.dir/all] Error 2
make[2]: Leaving directory `/d/kde/trunk/kdelibs'
make[1]: *** [kdeui/directorystart] Error 2
make[1]: Leaving directory `/d/kde/trunk/kdelibs'
make: *** [all] Error 2

I had warnings like this:

d:/kde/trunk/kdelibs/kdecore/kconfigbase.h: At global scope:
d:/kde/trunk/kdelibs/kdecore/kconfigbase.h: In instantiation of `T
KConfigBase::readEntry(const char*, const T&) const [with T = QColor]':
d:/kde/trunk/kdelibs/kdecore/kconfigbase.h:233:   instantiated from here
d:/kde/trunk/kdelibs/kdecore/kconfigbase.h:1559: warning: 'T
KConfigBase::readEntry(const char*, const T&) const [with T = QColor]'
defined locally after being referenced with dllimport linkage
d:/kde/trunk/kdelibs/kdecore/kconfigbase.h: In instantiation of
`QList<T> KConfigBase::readEntry(const char*, const QList<T>&) const
[with T = int]':
d:/kde/trunk/kdelibs/kdecore/kconfigbase.h:379:   instantiated from here
d:/kde/trunk/kdelibs/kdecore/kconfigbase.h:1523: warning: function
'QList<T> KConfigBase::readEntry(const char*, const QList<T>&) const
[with T = int]' is defined after prior declaration as dllimport:
attribute ignored
d:/kde/trunk/kdelibs/kdecore/kconfigbase.h:1523: warning: 'QList<T>
KConfigBase::readEntry(const char*, const QList<T>&) const [with T =
int]' defined locally after being referenced with dllimport linkage
[...]

Paulo


More information about the Kde-buildsystem mailing list