KDE4 libs compile error in kstandarddirs

Martin Koller m.koller at surfeu.at
Tue Dec 27 13:11:25 GMT 2005


On Monday 26 December 2005 16:22, André Wöbbeking wrote:
> 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?

4.1
Does it make a difference ?

> > 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.

Thanks.

-- 
Best regards/Schöne Grüße

Martin    ()  ascii ribbon campaign - against html mail 
          /\                        - against microsoft attachments

Computers and Internet gave you freedom.
TCPA would TAKE your FREEDOM!  http://www.againsttcpa.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051227/6be7b6a9/attachment.sig>


More information about the kde-core-devel mailing list