• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Problem mit Kdevelop und QT

orpheus

Newbie
Hallo miteinander,
ich würde gern anfangen mit qt programmieren aber irgendwie will mein Kdevelop net so wie ich will!!!!!wie kann ich bei Kdevelop angeben wo er nach header dateien suchen soll?

also hier ist jetzt erstmal mein Quelltext:
Code:
#include <qlabel.h>
#include <qapplication.h>



int main (int argc ,  char **argv)
{
QApplication app (argc, argv);
QLabel *l = new QLabel ("<H1>Hallo,Welt!</H1>", 0);
l->show();
app.setMainWidget (l);
return app.exec();
}

und hier die Fehler Meldung von Kdevelop:
cd "/home/felix/programme/qt/test2/debug" && QTDIR="/usr/lib/qt3/include" t="-I$QTDIR/include -Iqt" WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k -j1
*Linken der Datei test2 (libtool)
*Linken der Datei test2 (g++)
*/usr/lib/qt3/include/qstring.h:843: undefined reference to `QApplication::QApplication[in-charge](int&, char**)'
*test2.o(.text+0x57):/usr/lib/qt3/include/qstring.h:846: undefined reference to `QString::QString[in-charge](char const*)'
*test2.o(.text+0x66):/usr/lib/qt3/include/qstring.h:846: undefined reference to `QLabel::QLabel[in-charge](QString const&, QWidget*, char const*, unsigned)'
*/home/felix/programme/qt/test2/src/test2.cpp:32: undefined reference to `QApplication::setMainWidget(QWidget*)'
*test2.o(.text+0x118):/home/felix/programme/qt/test2/src/test2.cpp:33: undefined reference to `QApplication::exec()'
*test2.o(.text+0x129):/home/felix/programme/qt/test2/src/test2.cpp:33: undefined reference to `QApplication::~QApplication [in-charge]()'
*test2.o(.text+0x149):/home/felix/programme/qt/test2/src/test2.cpp:33: undefined reference to `QApplication::~QApplication [in-charge]()'
*test2.o(.gnu.linkonce.r._ZTV6QGList+0xc):/usr/lib/qt3/include/qglist.h:153: undefined reference to `QGList::clear()'
*test2.o(.gnu.linkonce.r._ZTV6QGList+0x10):/usr/lib/qt3/include/qglist.h:153: undefined reference to `QGList::~QGList [in-charge]()'
*test2.o(.gnu.linkonce.r._ZTV6QGList+0x14):/home/felix/programme/qt/test2/src/test2.cpp:29: undefined reference to `QGList::~QGList [in-charge deleting]()'
*gnu.linkonce.r._ZTV6QGList+0x18):/usr/lib/qt3/include/qshared.h:50: undefined reference to `QPtrCollection::newItem(void*)'
*test2.o(.gnu.linkonce.r._ZTV6QGList+0x20):/usr/lib/qt3/include/qstring.h:843: undefined reference to `QGList::compareItems(void*, void*)'
*test2.o(.gnu.linkonce.r._ZTV6QGList+0x24):/usr/lib/qt3/include/qstring.h:843: undefined reference to `QGList::read(QDataStream&, void*&)'
*test2.o(.gnu.linkonce.r._ZTV6QGList+0x28):/usr/lib/qt3/include/qstring.h:844: undefined reference to `QGList::write(QDataStream&, void*) const'
*/usr/lib/qt3/include/qstring.h:843: undefined reference to `QString::shared_null'
*/home/felix/programme/qt/test2/src/test2.cpp:30: undefined reference to `QStringData::deleteSelf()'
*test2.o(.gnu.linkonce.r._ZTI6QGList+0x8):/usr/lib/qt3/include/qstring.h:842: undefined reference to `typeinfo for QPtrCollection'
**** Beendet mit Status: 2 ***

danke gruss felix
 
Oben