Bonjour,
Je voudrais compiler un exemple qt simple.
J'utilise qmake pour fabriquer Makefile.
J'obtiens ce message d'erreur lorsque je lance make.


g++ -o helloworld helloworld.o -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
helloworld.o: dans la fonction `main':
helloworld.o(.text+0x1e): r�f�rence ind�finie vers `QApplication::QApplication[in-charge](int&, char**)'
helloworld.o(.text+0x31): r�f�rence ind�finie vers `QString::QString[in-charge](char const*)'
helloworld.o(.text+0x45): r�f�rence ind�finie vers `QPushButton::QPushButton[in-charge](QString const&, QWidget*, char const*)'
helloworld.o(.text+0x5d): r�f�rence ind�finie vers `QString::shared_null'
helloworld.o(.text+0x68): r�f�rence ind�finie vers `QStringData::deleteSelf()'
helloworld.o(.text+0x7c): r�f�rence ind�finie vers `QPushButton::resize(int, int)'
helloworld.o(.text+0x88): r�f�rence ind�finie vers `QApplication::setMainWidget(QWidget*)'
helloworld.o(.text+0x90): r�f�rence ind�finie vers `QWidget::show()'
helloworld.o(.text+0x98): r�f�rence ind�finie vers `QApplication::exec()'
helloworld.o(.text+0xa3): r�f�rence ind�finie vers `QPushButton::~QPushButton [in-charge]()'
helloworld.o(.text+0xab): r�f�rence ind�finie vers `QApplication::~QApplication [in-charge]()'
helloworld.o(.text+0xcf): r�f�rence ind�finie vers `QString::shared_null'
helloworld.o(.text+0xda): r�f�rence ind�finie vers `QStringData::deleteSelf()'
helloworld.o(.text+0xf1): r�f�rence ind�finie vers `QPushButton::~QPushButton [in-charge]()'
helloworld.o(.text+0x106): r�f�rence ind�finie vers `QApplication::~QApplication [in-charge]()'
collect2: ld returned 1 exit status
make: *** [helloworld] Erreur 1


J'ai le variable QTDIR=/usr/share/qt3
Je suis sous debian.
Pourriez-vous me conseiller.
Merci d'avance.

Mathieu

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: chat.unixtech.be:6667 - #unixtech

Répondre à