Why is this code giving me grief?
Ivan Hawkes
linuxgroupie at ivanhawkes.com
Mon Dec 4 21:53:07 UTC 2000
ARRRGG...I just want to compile a copy of the thing so I can merge my project
into it.
When I compile KDevelop 2.0 (anon CVS) I get two compile errors which are
related to the code below.
Line 289: KDevelopCore.cpp
m_pKDevelopGUI->writeDockConfig(layoutel);
Line 390: KDevelopCore.cpp
if (!layoutel.isNull())
m_pKDevelopGUI->readDockConfig(layoutel);
MAKE OUTPUT
***********
make[1]: Entering directory `/home/ivan/src/kdevelop/kdevelop'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../kdevelop/lib/general
-I../kdevelop/lib/sourceinfo -I../kdevelop/lib/projectmanagement
-I../kdevelop/widgets/qextmdi/include -I../kdevelop/lib/projectmanagement
-I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include -O2
-fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith
-Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin -O0 -g3 -pg
-Wall -c kdevelopcore.cpp
kdevelopcore.cpp: In method `void KDevelopCore::unloadProjectSpace()':
kdevelopcore.cpp:289: no matching function for call to
`KDevelop::writeDockConfig (QDomElement &)'
/opt/kde/include/kdockwidget.h:1071: candidates are: void
KDockMainWindow::writeDockConfig(KConfig * = 0, QString = QString::null)
kdevelopcore.cpp: In method `bool KDevelopCore::loadProjectSpace(const
QString &)':
kdevelopcore.cpp:391: no matching function for call to
`KDevelop::readDockConfig (QDomElement &)'
/opt/kde/include/kdockwidget.h:1079: candidates are: void
KDockMainWindow::readDockConfig(KConfig * = 0, QString = QString::null)
kdevelopcore.cpp: In method `void KDevelopCore::gotoDocumentationFile(const
QString &)':
kdevelopcore.cpp:605: warning: unused parameter `const class QString &
fileName'
make[1]: *** [kdevelopcore.o] Error 1
make[1]: Leaving directory `/home/ivan/src/kdevelop/kdevelop'
make: *** [all-recursive] Error 1
***********
That #ifndef around the code looks suspicious. Is this implying some part of
KDE2 is not getting into the project?
#ifndef NO_KDE2
/**
* It writes the current dock state in the given section of KConfig.
*
* @param c KDE class for saving configurations
* @param group name of section to write to
*/
void writeDockConfig( KConfig* c = 0L, QString group = QString::null );
/**
* It reads the current dock state from the given section of KConfig.
*
* @param c KDE class for saving configurations
* @param group name of section to read from
*/
void readDockConfig ( KConfig* c = 0L, QString group = QString::null );
#endif
-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop-devel
mailing list