[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KSpell2
From: Nathan Toone <nathan () toonetown ! com>
Date: 2004-05-03 15:58:11
Message-ID: 200405030958.12704.nathan () toonetown ! com
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm having problems compiling KSpell, and I don't know what it is that I'm
doing wrong. (From CVS Head...)
Here is my error:
configui.cpp:43: error: invalid use of undefined type `struct KComboBox'
configui.h:21: error: forward declaration of `struct KComboBox'
configui.cpp:44: error: no matching function for call to `QHBoxLayout::
addWidget(KComboBox*&)'
/usr/qt/3/include/qlayout.h:386: error: candidates are: void
QBoxLayout::addWidget(QWidget*, int, int)
configui.cpp:66: error: invalid use of undefined type `struct KEditListBox'
configui.h:24: error: forward declaration of `struct KEditListBox'
configui.cpp:67: error: no matching function for call to `QVBoxLayout::
addWidget(KEditListBox*&)'
/usr/qt/3/include/qlayout.h:386: error: candidates are: void
QBoxLayout::addWidget(QWidget*, int, int)
configui.cpp: In member function `virtual void
KSpell2ConfigUI::languageChange()':
configui.cpp:93: error: `setTitle' undeclared (first use this function)
configui.cpp:93: error: (Each undeclared identifier is reported only once for
each function it appears in.)
make: *** [configui.lo] Error 1
Isn't configui.cpp an automatically generated file? I looked in its source,
and it doesn't include kcombobox.h or keditlistbox.h. Manually adding those
include statments fixes this problem, and it compiles correctly.
However, my question is more than that - how do automatically generated files
get generated? I'm assuming that this particular one comes from configui.ui,
but I can't see where I could tell it that it needs to add in those include
statements. That is, my fix above works, but once I do a "make clean &&
make", it breaks again. So my question is twofold - how can I fix it? And
how do auto-generated files work? (the first is more pressing to me right
now...)
- -Nathan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAlmwT+lPSZRR0T30RAk/JAJoDzRV09QQ2LtQZVeAbYoDA1kEx9gCfXZXt
Yvwh2HVxFmM9CeKSkejwzt4=
=jF4B
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic