[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Compilation errors
From: Mantia Andras <amantia () freemail ! hu>
Date: 2002-10-12 9:42:30
[Download RAW message or body]
Hi,
Do you know what is the best (from the developer point of view) to fix
compilation errors like the below one? This happens only for a part of the
users (debian & Mandrake users reported by now). As I see the compiler gives
the well known error when using forward classes. The KURLRequester is in a
.ui file (inserted in QT designer). uic should insert the correct #include in
the generated .cpp file for this class, but it seems that it fails for some
systems. Any idea how to make it work everywhere?
Andras
-----------------------------------------------------------------------------------------------------------
g++ -I. -I. -I../.. -I. -I. -I../.. -I/usr/include/kde
-I/usr/lib/qt-3.0.5/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT
-D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic
-W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2
-fno-exceptions -fno-check-new -c -o copytos.o `test -f copytos.cpp ||
echo './'`copytos.cpp copytos.cpp: In constructor
`CopyToS::CopyToS(QWidget*, const char*, bool, unsigned int)':
copytos.cpp:47: invalid use of undefined type `struct KURLRequester'
copytos.h:17: forward declaration of `struct KURLRequester'
copytos.cpp:49: no matching function for call to `QGridLayout::
addMultiCellWidget(KURLRequester*&, int, int, int, int)'
/usr/lib/qt-3.0.5/include/qlayout.h:325: candidates are: void
QGridLayout::addMultiCellWidget(QWidget*, int, int, int, int, int =
0) make[3]: *** [copytos.o] Error 1
make[3]: Leaving directory
`/copia/homes/gio/dischetti/quanta-3.0/quanta/dialogs' make[2]: ***
[all-recursive] Error 1
make[2]: Leaving directory
`/copia/homes/gio/dischetti/quanta-3.0/quanta' make[1]: ***
[all-recursive] Error 1
make[1]: Leaving directory `/copia/homes/gio/dischetti/quanta-3.0'
make: *** [all] Error 2
> > 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