lut
j'aimerais savoir quel est la ligne de commande pour compiler des progs avec qt sous linux
voici (une partie) les erreurs que g++ me sort lorsque j'essaye simplement de compiler le premier tutorial ( le hello world)
/tmp/cc7bxZdV.o: In function `main':
/tmp/cc7bxZdV.o(.text+0x1a): undefined reference to `QApplication::QApplication(int &, char **)'
/tmp/cc7bxZdV.o(.text+0x31): undefined reference to `QString::QString(char const *)'
/tmp/cc7bxZdV.o(.text+0x4d): undefined reference to `QPushButton::QPushButton(QString const &, QWidget *, char const *)'
/tmp/cc7bxZdV.o(.text+0x83): undefined reference to `QPushButton::resize(int, int)'
/tmp/cc7bxZdV.o(.text+0x99): undefined reference to `QApplication::setMainWidget(QWidget *)'
/tmp/cc7bxZdV.o(.text+0xab): undefined reference to `QWidget::show(void)'
/tmp/cc7bxZdV.o(.text+0xba): undefined reference to `QApplication::exec(void)'
/tmp/cc7bxZdV.o(.text+0xd0): undefined reference to `QPushButton::~QPushButton(void)'
/tmp/cc7bxZdV.o(.text+0xe1): undefined reference to `QApplication::~QApplication(void)'
/tmp/cc7bxZdV.o(.text+0x12d): undefined reference to `QPushButton::~QPushButton(void)'
/tmp/cc7bxZdV.o(.text+0x140): undefined reference to `QApplication::~QApplication(void)'
/tmp/cc7bxZdV.o(.rodata+0xb8): undefined reference to `QDropEvent type_info node'
/tmp/cc7bxZdV.o: In function `QArray<char> type_info function':
/tmp/cc7bxZdV.o(.gnu.linkonce.t.__tft6QArray1Zc+0x10): undefined reference to `QGArray type_info function'
/tmp/cc7bxZdV.o(.gnu.linkonce.t.__tft6QArray1Zc+0x1a): undefined reference to `QGArray type_info node'
/tmp/cc7bxZdV.o: In function `QTimerEvent type_info function':
/tmp/cc7bxZdV.o(.gnu.linkonce.t.__tf11QTimerEvent+0x10): undefined reference to `QEvent type_info function'
/tmp/cc7bxZdV.o(.gnu.linkonce.t.__tf11QTimerEvent+0x1a): undefined reference to `QEvent type_info node'
/tmp/cc7bxZdV.o: In function `QMouseEvent type_info function':
/tmp/cc7bxZdV.o(.gnu.linkonce.t.__tf11QMouseEvent+0x10): undefined reference to `QEvent type_info function'
(j'ai utiliser "g++ essais.cpp -I /usr/local/qt/include -L /usr/local/qt/lib" comme ligne de commande)