metres@AMI:~/Programmation/qt/Test$ make
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/include/qt3 -o main.o main.cpp
main.cpp:1:25: erreur: QApplication : Aucun fichier ou r�pertoire de ce type
main.cpp:2:24: erreur: QPushButton : Aucun fichier ou r�pertoire de ce type
main.cpp: In function ‘int main(int, char**)’:
main.cpp:6: erreur: ‘QApplication’ was not declared in this scope
main.cpp:6: erreur: expected `;' before ‘app’
main.cpp:8: erreur: ‘QPushButton’ was not declared in this scope
main.cpp:8: erreur: expected `;' before ‘hello’
main.cpp:9: erreur: ‘hello’ was not declared in this scope
main.cpp:12: erreur: ‘app’ was not declared in this scope
main.cpp: At global scope:
main.cpp:4: attention : unused parameter ‘argc’
main.cpp:4: attention : unused parameter ‘argv’
make: *** [main.o] Erreur 1
metres@AMI:~/Programmation/qt/Test$ cat main.cpp
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
metres@AMI:~/Programmation/qt/Test$
main.cpp:4: attention : unused parameter ‘argv’
make: *** [main.o] Erreur 1
metres@AMI:~/Programmation/qt/Test$