From: Joachim E. <joa...@gm...> - 2007-10-21 08:21:06
|
Hi, Your SLES9 seems to use KDE3.2 or older. Original line 1650: QStringList readListEntry (const QString& s, const QStringList& def, char separator ) { return m_pConfig->readListEntry(s.latin1(),def,separator); } error: no matching function for call to `KConfig:: readListEntry(const char*, const QStringList&, char&) Candidates are: int KConfigBase::readListEntry(const QString&, QStrList&, char) const int KConfigBase::readListEntry(const char*, QStrList&, char) const QStringList KConfigBase::readListEntry(const QString&, char) const QStringList KConfigBase::readListEntry(const char*, char) const My KDE-docs allow the following since KDE3.3: QStringList readListEntry (const char *pKey, const QStringList &aDefault, char sep= ',') const Since the paramter aDefault requires a QStringList (instead of QStrList) this doesn't work. But since it is a default parameter, you can replace the function in line 1650 with: QStringList readListEntry (const QString& s, const QStringList& def, char separator ) { // This is essentially the KDE-implementation. if ( !m_pConfig->hasKey( s.latin1() ) ) return def; else return m_pConfig-> readListEntry( s.latin1(), separator ); } Or if the above doesn't work: { QStringList sl = m_pConfig->readListEntry(s.latin1(),separator); if (sl.isEmpty()) return def; return sl; } Cheers, Joachim Am Freitag 19 Oktober 2007 16:09:59 schrieb Bob Bell: > I am trying to build kdiff3 on a SLES9 box, and I'm running into > a compilation error. Can any advise me on what I might be missing? > > make[2]: Entering directory `/auto/bbell/kdiff3-0.9.92/src' > if /bin/sh ../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H > -I. -I. -I.. -I/opt/kde3/include -I/usr/lib/qt3/include > -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long > -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion > -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security > -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions > -fno-check-new -fno-common -MT optiondialog.lo -MD -MP -MF > ".deps/optiondialog.Tpo" -c -o optiondialog.lo optiondialog.cpp; \ then mv > -f ".deps/optiondialog.Tpo" ".deps/optiondialog.Plo"; else rm -f > ".deps/optiondialog.Tpo"; exit 1; fi optiondialog.cpp: In member function > `virtual QStringList > ConfigValueMap::readListEntry(const QString&, const QStringList&, > char)': optiondialog.cpp:1650: error: no matching function for call to > `KConfig:: readListEntry(const char*, const QStringList&, char&)' > /opt/kde3/include/kconfigbase.h:232: error: candidates are: int > KConfigBase::readListEntry(const QString&, QStrList&, char) const > /opt/kde3/include/kconfigbase.h:244: error: int > KConfigBase::readListEntry(const char*, QStrList&, char) const > /opt/kde3/include/kconfigbase.h:253: error: QStringList > KConfigBase::readListEntry(const QString&, char) const > /opt/kde3/include/kconfigbase.h:262: error: QStringList > KConfigBase::readListEntry(const char*, char) const > make[2]: *** [optiondialog.lo] Error 1 > make[2]: Leaving directory `/auto/bbell/kdiff3-0.9.92/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/auto/bbell/kdiff3-0.9.92' > make: *** [all] Error 2 |