KDE4 libs compile error in kstandarddirs

André Wöbbeking Woebbeking at onlinehome.de
Mon Dec 26 15:22:33 GMT 2005


On Sunday 25 December 2005 20:03, Martin Koller wrote:
> Hi all,
>
> I'm trying to compile KDE4 kdelibs from
> branches/work/kdelibs4_snapshot and I get the following error:
>
> /home/qt4/include/QtCore/qmap.h: In member function `QMap<Key,
>    T>::const_iterator QMap<Key, T>::const_iterator::operator--(int)
> [with Key =
>    QByteArray, T = QStringList]':
> /home/KDE4/source/kdelibs/kdecore/kstandarddirs.cpp:57:  
> instantiated from here
> /home/qt4/include/QtCore/qmap.h:265: error: conversion from
> `QMap<QByteArray, QStringList>::const_iterator' to non-scalar type
> `QMap<QByteArray, QStringList>::iterator' requested
> Error creating ./kdecore/kstandarddirs.lo. Exit status 1.

Do you use Qt 4.1 or uptodate qt-copy?

> I'm not the template guru, so I simply removed the line 57 in
> kstandarddirs.cpp which was:
>
> template class QMap<QByteArray, QStringList>;
>
> as I never used this explicit definition in other Qt code when using
> the template classes. And now it compiles.
>
> Why was this line there ?

Don't know but I removed it in trunk.


Cheers,
André




More information about the kde-core-devel mailing list