QT-Tutorial

Markus Wigge markus at cultcom.de
Fri Sep 15 19:26:53 CEST 2000


Hi folks,

  ich hoffe hier gibt es ein paar Experten die mir blutigem Anfänger
  bei der QT-Programmierung helfen können ...
  Ich schau mir grad mal das Tutorial auf troll.no an und hack dann
  folgendes Beispiel ab:

#include <qapplication.h>
#include <qfont.h>

#include "forumpflege.h"

int main(int argc, char *argv[])
{
  QApplication a(argc, argv);
  a.setFont(QFont("helvetica", 12));
  /* uncomment the following line, if you want a Windows 95 look*/
  // a.setStyle(WindowsStyle);
    
  Forumpflege *forumpflege=new Forumpflege();
  a.setMainWidget(forumpflege);

  forumpflege->setCaption("Document 1");
  forumpflege->show();

  return a.exec();
}  

Und dann steht in dem Tutorial, das ich das jetzt compilieren soll,
aber wie?! g++ meckert mir da ganz schön viel dran rum:

/tmp/ccPaf8BE.o: In function `main':
/tmp/ccPaf8BE.o(.text+0x17): undefined reference to `QApplication::QApplication(int &, char **)'
/tmp/ccPaf8BE.o(.text+0x2f): undefined reference to `QPushButton::QPushButton(char const *, QWidget *, char const *)'
/tmp/ccPaf8BE.o(.text+0x42): undefined reference to `QPushButton::resize(int, int)'
/tmp/ccPaf8BE.o(.text+0x55): undefined reference to `QApplication::setMainWidget(QWidget *)'
/tmp/ccPaf8BE.o(.text+0x64): undefined reference to `QWidget::show(void)'
/tmp/ccPaf8BE.o(.text+0x70): undefined reference to `QApplication::exec(void)'
/tmp/ccPaf8BE.o(.text+0x83): undefined reference to `QPushButton::~QPushButton(void)'
/tmp/ccPaf8BE.o(.text+0x91): undefined reference to `QApplication::~QApplication(void)'
/tmp/ccPaf8BE.o(.text+0xc6): undefined reference to `QPushButton::~QPushButton(void)'
/tmp/ccPaf8BE.o(.text+0xd7): undefined reference to `QApplication::~QApplication(void)'
collect2: ld returned 1 exit status

Und da ich noch absolut keine Ahnung von dem QT-Zeug habe kann ich da
nicht so richtig viel mit anfangen ...

Was muss ich dem compiler mit auf den Weg geben damit der das
hinkriegt?

-- 
bye,
  Markus                        mailto:markus at cultcom.de



-
Hinweise zur Benutzung dieser (und anderer Mailing-Listen) bitte beachten:
--> http://lug-owl.de/mailinglist_hints.html <--



More information about the Linux mailing list