KDE4 libs compile error in kstandarddirs

Martin Koller m.koller at surfeu.at
Sun Dec 25 19:03:38 GMT 2005


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.


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 ?

P.S.: I'm using gcc 3.3.3 on Suse Linux 9.1

-- 
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/20051225/85f8863c/attachment.sig>


More information about the kde-core-devel mailing list