Salut,
Apres avoir commencer un tuto pour debuter avec Qt je me suis vite bloque.

Le petit bout de code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
#include <QApplication>
 
int main(int ac, char **av)
{
    QApplication app(ac, av);
 
    return app.exec();
}
La compilation :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
$ make
g++    -c -o main.o main.cpp
main.cpp:1:24: error: QApplication: No such file or directory
main.cpp: In function 'int main(int, char**)':
main.cpp:5: error: 'QApplication' was not declared in this scope
main.cpp:5: error: expected `;' before 'app'
main.cpp:7: error: 'app' was not declared in this scope
make: *** [main.o] Error 1
$
Si quelqu'un pouvais m'aider =)

Merci d'avance