Programmer en QT et C++ avec linux

Fermé
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 - 17 déc. 2011 à 13:26
Char Snipeur Messages postés 9813 Date d'inscription vendredi 23 avril 2004 Statut Contributeur Dernière intervention 3 octobre 2023 - 19 déc. 2011 à 10:32
Bonjour,

Je suis Débutant en language Qt et C++ j'ai acheter un livre pour apprendre , mon livre est "QT4 et C++ Programmation d'interfaces GUI de PEARSON" seulement voila je suis sous linux et lorsque je veut compiler le premier exercice de la page 4, j'ai une erreur fatale ?

j'ai créer un fichier nommé "Cours1.c" avec le code suivant :

Code :
1 #include <QApplication>
2 #include <QLabel>
3 int main(int argc, char *argv[])
4 {
5 QApplication app(argc, argv);
6 QLabel *label = new QLabel("Hello Qt!");
7 label->show();
8 return app.exec();
9 }


Puis je compile
Commande :
$ gcc Cours1.c; ./a.out
Cours1.c:1:24: erreur fatale: QApplication : Aucun fichier ou dossier de ce type
compilation terminée.
[laurent@localhost QT]$


Pouvez vous m'expliquer pourquoi j'ai une erreur fatale au premier cours ?

Merci

A voir également:

15 réponses

loupius Messages postés 697 Date d'inscription dimanche 1 novembre 2009 Statut Membre Dernière intervention 31 décembre 2017 148
17 déc. 2011 à 15:07
Il faut évidemment que Qt soit installé. Suivant ta distribution des packages existent; l'installation est autorisée et gratuite dans la mesure où les programmes utilisant Qt ne sont pas commercialisés.
Ta ligne de compilation est beaucoup trop simpliste.
En fait, le plus simple est de travailler avec QtCreator.
Toutefois si tu veux compiler en dehors de celui-ci, voici, sous Linux, comment faire:
1) créer un répertoire et y mettre tes fichiers sources,
2) lancer la commande:
  qmake-qt4 -project    qui va te créer un fichier projet
3) lancer la commande:
  qmake-qt4             qui va te créer un fichier 'Makefile'
4) lancer la commande:
  make                  qui va te créer un fichier executable
Il ne te restera plus qu'à exécuter le fichier.
Je t'encourage, si tu veux vraiment développer avec Qt, d'utiliser QtCreator.
Bonne continuation.
2
loupius Messages postés 697 Date d'inscription dimanche 1 novembre 2009 Statut Membre Dernière intervention 31 décembre 2017 148
17 déc. 2011 à 21:20
Ce n'est pas la peine de nous envoyer quelques 500 lignes d'erreurs - on ne va pas les lire -:) -, en général, les dix ou 20 premières lignes suffisent largement.
1
gardiendelanuit Messages postés 1769 Date d'inscription jeudi 20 décembre 2007 Statut Membre Dernière intervention 19 novembre 2016 264
17 déc. 2011 à 13:37
Bonjour,
Tu es sûr d'avoir la bibliothèque QApplication?
0
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 14
17 déc. 2011 à 13:46
Non je ne suis pas sur d'avoir la bibliothèque QApplication ?

Comment dois je faire pour l'installer sous linux ?

Merci.
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
gardiendelanuit Messages postés 1769 Date d'inscription jeudi 20 décembre 2007 Statut Membre Dernière intervention 19 novembre 2016 264
17 déc. 2011 à 14:06
D'après ce que je me souviens elle est disponible pour linux sur le site de qt... mais payant je crois... A voir.
0
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 14
17 déc. 2011 à 16:24
Bonjour

encore un probleme, lorsque je tape :

$ qmake-qt4 -cours1
bash: qmake-qt4 : commande introuvable


J'essai de l'installer :

# urpmi qmake
Pas de paquetage nommé qmake
# urpmi qmake-qt4
Pas de paquetage nommé qmake-qt4
# urpmi qt
Le paquetage qt3-common-3.3.8b-25.mga1.x86_64 est déjà installé
#


Merci
0
loupius Messages postés 697 Date d'inscription dimanche 1 novembre 2009 Statut Membre Dernière intervention 31 décembre 2017 148
17 déc. 2011 à 18:32
Bon apparemment c'est Qt3 qui est installé, alors évidemment la commande 'qmake-qt4' n'existe pas.
Tu peux toujours écrire toi-même le fichier '.pro'', par exemple:
  CONFIG += qt
  HEADERS += essai.h
  SOURCES += essai.cpp
  TARGET = essai
Puis lancer 'qmake' pour générer le 'Makefile' puis 'make'.
Bonne continuation.
0
loupius Messages postés 697 Date d'inscription dimanche 1 novembre 2009 Statut Membre Dernière intervention 31 décembre 2017 148
17 déc. 2011 à 18:41
Avec Qt3, on peut utiliser les commandes:
  qmake -project
  qmake
  make
0
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 14
17 déc. 2011 à 18:59
Bonsoir,

Je n'arrive pas à trouver la bibliothèque "QApplication" sur le site internet de QT pour QT3.

J'ai cette erreur :

[laurent@localhost QT]$ qmake -project
[laurent@localhost QT]$ qmake
[laurent@localhost QT]$ make
gcc -c -pipe -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -DPIC -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -DPIC -fPIC -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -I. -I. -o cours-c-1.o cours-c-1.c
cours-c-1.c: In function `main':
cours-c-1.c:4:1: attention : contrôle a atteint la fin non void de la fonction
gcc -c -pipe -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -DPIC -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -DPIC -fPIC -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -I. -I. -o Cours1.o Cours1.c
In file included from /usr/lib/qt4/include/QtCore/qobjectdefs.h:45:0,
                 from /usr/lib/qt4/include/QtCore/qobject.h:47,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qnamespace.h:51:1: attention : return type defaults to `int'
/usr/lib/qt4/include/QtCore/qnamespace.h: In function `QT_MODULE':
/usr/lib/qt4/include/QtCore/qnamespace.h:54:1: erreur: expected declaration specifiers before `namespace'
/usr/lib/qt4/include/QtCore/qnamespace.h:1790:1: erreur: expected declaration specifiers before `Q_DECLARE_OPERATORS_FOR_FLAGS'
/usr/lib/qt4/include/QtCore/qnamespace.h:1811:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qnamespace.h:1866:2: erreur: expected declaration specifiers before `;' token
In file included from /usr/lib/qt4/include/QtCore/qobject.h:47:0,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qobjectdefs.h:51:1: erreur: expected declaration specifiers before `QT_MODULE'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:55:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:143:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:146:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:214:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:242:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:243:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:244:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:245:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:246:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:249:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:260:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:262:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:268:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:270:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:277:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:278:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:285:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:288:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qobjectdefs.h:295:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:298:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
In file included from /usr/lib/qt4/include/QtCore/qobject.h:47:0,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qobjectdefs.h:467:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:469:26: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:476:23: erreur: expected `:', `,', `;', `}' or `__attribute__' before `*' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:471:1: attention : déclaration vide
/usr/lib/qt4/include/QtCore/qobjectdefs.h:481:31: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qobjectdefs.h:484:26: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `*' token
In file included from /usr/lib/qt4/include/QtCore/qstring.h:45:0,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qchar.h:51:1: erreur: expected declaration specifiers before `QT_MODULE'
/usr/lib/qt4/include/QtCore/qchar.h:57:1: erreur: expected specifier-qualifier-list before `public'
/usr/lib/qt4/include/QtCore/qchar.h:55:1: attention : déclaration vide
/usr/lib/qt4/include/QtCore/qchar.h:72:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qchar.h:361:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qchar.h:363:1: erreur: expected declaration specifiers before `Q_DECLARE_TYPEINFO'
/usr/lib/qt4/include/QtCore/qchar.h:365:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:370:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:372:14: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QChar'
/usr/lib/qt4/include/QtCore/qchar.h:374:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:375:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:376:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:377:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:378:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:379:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:381:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:383:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qchar.h:386:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qchar.h:387:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qchar.h:388:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qchar.h:389:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qchar.h:390:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qchar.h:391:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qchar.h:394:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qchar.h:395:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
In file included from /usr/lib/qt4/include/QtCore/qatomic.h:46:0,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:45,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qbasicatomic.h:51:1: erreur: expected declaration specifiers before `QT_MODULE'
/usr/lib/qt4/include/QtCore/qbasicatomic.h:128:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qbasicatomic.h:130:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qbasicatomic.h:211:2: erreur: expected declaration specifiers before `;' token
In file included from /usr/lib/qt4/include/QtCore/qatomic_arch.h:84:0,
                 from /usr/lib/qt4/include/QtCore/qbasicatomic.h:227,
                 from /usr/lib/qt4/include/QtCore/qatomic.h:46,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:45,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:52:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:54:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:60:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:62:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:68:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:70:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:76:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:78:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:84:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:87:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:94:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:97:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:104:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:107:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:113:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:125:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:137:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:149:27: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:158:27: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:168:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:181:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:191:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:260:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:265:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:270:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QBasicAtomicInt'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:275:27: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:280:27: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:285:27: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:290:27: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:295:27: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:300:27: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:305:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:311:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:317:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:323:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:329:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:335:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:341:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:347:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic_x86_64.h:353:1: erreur: expected declaration specifiers before `template'
In file included from /usr/lib/qt4/include/QtCore/qbytearray.h:45:0,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qatomic.h:52:1: erreur: expected declaration specifiers before `QT_MODULE'
/usr/lib/qt4/include/QtCore/qatomic.h:121:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qatomic.h:124:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic.h:186:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qatomic.h:194:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qatomic.h:213:1: erreur: expected declaration specifiers before `template'
In file included from /usr/lib/qt4/include/QtCore/qbytearray.h:48:0,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/string.h:44:14: erreur: storage class specified for parameter `memcpy'
/usr/include/string.h:49:14: erreur: storage class specified for parameter `memmove'
/usr/include/string.h:57:14: erreur: storage class specified for parameter `memccpy'
/usr/include/string.h:65:14: erreur: storage class specified for parameter `memset'
/usr/include/string.h:68:12: erreur: storage class specified for parameter `memcmp'
/usr/include/string.h:95:14: erreur: storage class specified for parameter `memchr'
/usr/include/string.h:128:14: erreur: storage class specified for parameter `strcpy'
/usr/include/string.h:131:14: erreur: storage class specified for parameter `strncpy'
/usr/include/string.h:136:14: erreur: storage class specified for parameter `strcat'
/usr/include/string.h:139:14: erreur: storage class specified for parameter `strncat'
/usr/include/string.h:143:12: erreur: storage class specified for parameter `strcmp'
/usr/include/string.h:146:12: erreur: storage class specified for parameter `strncmp'
/usr/include/string.h:150:12: erreur: storage class specified for parameter `strcoll'
/usr/include/string.h:153:15: erreur: storage class specified for parameter `strxfrm'
In file included from /usr/include/string.h:162:0,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:48,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/xlocale.h:40:4: erreur: storage class specified for parameter `__locale_t'
/usr/include/xlocale.h:43:20: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `locale_t'
In file included from /usr/lib/qt4/include/QtCore/qbytearray.h:48:0,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/string.h:165:63: erreur: expected declaration specifiers or `...' before `__locale_t'
/usr/include/string.h:165:12: erreur: storage class specified for parameter `strcoll_l'
/usr/include/string.h:166:6: erreur: nonnull argument with out-of-range operand number (argument 1, operand 3)
/usr/include/string.h:169:5: erreur: expected declaration specifiers or `...' before `__locale_t'
/usr/include/string.h:168:15: erreur: storage class specified for parameter `strxfrm_l'
/usr/include/string.h:169:5: erreur: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/string.h:175:14: erreur: storage class specified for parameter `strdup'
/usr/include/string.h:183:14: erreur: storage class specified for parameter `strndup'
/usr/include/string.h:235:14: erreur: storage class specified for parameter `strchr'
/usr/include/string.h:262:14: erreur: storage class specified for parameter `strrchr'
/usr/include/string.h:284:15: erreur: storage class specified for parameter `strcspn'
/usr/include/string.h:288:15: erreur: storage class specified for parameter `strspn'
/usr/include/string.h:314:14: erreur: storage class specified for parameter `strpbrk'
/usr/include/string.h:342:14: erreur: storage class specified for parameter `strstr'
/usr/include/string.h:348:14: erreur: storage class specified for parameter `strtok'
/usr/include/string.h:354:14: erreur: storage class specified for parameter `__strtok_r'
/usr/include/string.h:359:14: erreur: storage class specified for parameter `strtok_r'
/usr/include/string.h:399:15: erreur: storage class specified for parameter `strlen'
/usr/include/string.h:406:15: erreur: storage class specified for parameter `strnlen'
/usr/include/string.h:413:14: erreur: storage class specified for parameter `strerror'
/usr/include/string.h:427:12: erreur: storage class specified for parameter `strerror_r'
/usr/include/string.h:445:40: erreur: expected declaration specifiers or `...' before `__locale_t'
/usr/include/string.h:445:14: erreur: storage class specified for parameter `strerror_l'
/usr/include/string.h:451:13: erreur: storage class specified for parameter `__bzero'
/usr/include/string.h:455:13: erreur: storage class specified for parameter `bcopy'
/usr/include/string.h:459:13: erreur: storage class specified for parameter `bzero'
/usr/include/string.h:462:12: erreur: storage class specified for parameter `bcmp'
/usr/include/string.h:489:14: erreur: storage class specified for parameter `index'
/usr/include/string.h:517:14: erreur: storage class specified for parameter `rindex'
/usr/include/string.h:523:12: erreur: storage class specified for parameter `ffs'
/usr/include/string.h:536:12: erreur: storage class specified for parameter `strcasecmp'
/usr/include/string.h:540:12: erreur: storage class specified for parameter `strncasecmp'
/usr/include/string.h:559:14: erreur: storage class specified for parameter `strsep'
/usr/include/string.h:566:14: erreur: storage class specified for parameter `strsignal'
/usr/include/string.h:569:14: erreur: storage class specified for parameter `__stpcpy'
/usr/include/string.h:571:14: erreur: storage class specified for parameter `stpcpy'
/usr/include/string.h:576:14: erreur: storage class specified for parameter `__stpncpy'
/usr/include/string.h:579:14: erreur: storage class specified for parameter `stpncpy'
In file included from /usr/include/bits/string2.h:53:0,
                 from /usr/include/string.h:637,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:48,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/bits/types.h:31:23: erreur: storage class specified for parameter `__u_char'
/usr/include/bits/types.h:32:28: erreur: storage class specified for parameter `__u_short'
/usr/include/bits/types.h:33:22: erreur: storage class specified for parameter `__u_int'
/usr/include/bits/types.h:34:27: erreur: storage class specified for parameter `__u_long'
/usr/include/bits/types.h:37:21: erreur: storage class specified for parameter `__int8_t'
/usr/include/bits/types.h:38:23: erreur: storage class specified for parameter `__uint8_t'
/usr/include/bits/types.h:39:26: erreur: storage class specified for parameter `__int16_t'
/usr/include/bits/types.h:40:28: erreur: storage class specified for parameter `__uint16_t'
/usr/include/bits/types.h:41:20: erreur: storage class specified for parameter `__int32_t'
/usr/include/bits/types.h:42:22: erreur: storage class specified for parameter `__uint32_t'
/usr/include/bits/types.h:44:25: erreur: storage class specified for parameter `__int64_t'
/usr/include/bits/types.h:45:27: erreur: storage class specified for parameter `__uint64_t'
/usr/include/bits/types.h:53:18: erreur: storage class specified for parameter `__quad_t'
/usr/include/bits/types.h:54:27: erreur: storage class specified for parameter `__u_quad_t'
In file included from /usr/include/bits/string2.h:53:0,
                 from /usr/include/string.h:637,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:48,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/bits/types.h:134:25: erreur: storage class specified for parameter `__dev_t'
/usr/include/bits/types.h:135:25: erreur: storage class specified for parameter `__uid_t'
/usr/include/bits/types.h:136:25: erreur: storage class specified for parameter `__gid_t'
/usr/include/bits/types.h:137:25: erreur: storage class specified for parameter `__ino_t'
/usr/include/bits/types.h:138:27: erreur: storage class specified for parameter `__ino64_t'
/usr/include/bits/types.h:139:26: erreur: storage class specified for parameter `__mode_t'
/usr/include/bits/types.h:140:27: erreur: storage class specified for parameter `__nlink_t'
/usr/include/bits/types.h:141:25: erreur: storage class specified for parameter `__off_t'
/usr/include/bits/types.h:142:27: erreur: storage class specified for parameter `__off64_t'
/usr/include/bits/types.h:143:25: erreur: storage class specified for parameter `__pid_t'
/usr/include/bits/types.h:144:26: erreur: storage class specified for parameter `__fsid_t'
/usr/include/bits/types.h:145:27: erreur: storage class specified for parameter `__clock_t'
/usr/include/bits/types.h:146:26: erreur: storage class specified for parameter `__rlim_t'
/usr/include/bits/types.h:147:28: erreur: storage class specified for parameter `__rlim64_t'
/usr/include/bits/types.h:148:24: erreur: storage class specified for parameter `__id_t'
/usr/include/bits/types.h:149:26: erreur: storage class specified for parameter `__time_t'
/usr/include/bits/types.h:150:30: erreur: storage class specified for parameter `__useconds_t'
/usr/include/bits/types.h:151:31: erreur: storage class specified for parameter `__suseconds_t'
/usr/include/bits/types.h:153:27: erreur: storage class specified for parameter `__daddr_t'
/usr/include/bits/types.h:154:27: erreur: storage class specified for parameter `__swblk_t'
/usr/include/bits/types.h:155:25: erreur: storage class specified for parameter `__key_t'
/usr/include/bits/types.h:158:29: erreur: storage class specified for parameter `__clockid_t'
/usr/include/bits/types.h:161:27: erreur: storage class specified for parameter `__timer_t'
/usr/include/bits/types.h:164:29: erreur: storage class specified for parameter `__blksize_t'
/usr/include/bits/types.h:169:28: erreur: storage class specified for parameter `__blkcnt_t'
/usr/include/bits/types.h:170:30: erreur: storage class specified for parameter `__blkcnt64_t'
/usr/include/bits/types.h:173:30: erreur: storage class specified for parameter `__fsblkcnt_t'
/usr/include/bits/types.h:174:32: erreur: storage class specified for parameter `__fsblkcnt64_t'
/usr/include/bits/types.h:177:30: erreur: storage class specified for parameter `__fsfilcnt_t'
/usr/include/bits/types.h:178:32: erreur: storage class specified for parameter `__fsfilcnt64_t'
/usr/include/bits/types.h:180:27: erreur: storage class specified for parameter `__ssize_t'
/usr/include/bits/types.h:184:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `__loff_t'
/usr/include/bits/types.h:185:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `*' token
/usr/include/bits/types.h:186:15: erreur: storage class specified for parameter `__caddr_t'
/usr/include/bits/types.h:189:25: erreur: storage class specified for parameter `__intptr_t'
/usr/include/bits/types.h:192:23: erreur: storage class specified for parameter `__socklen_t'
In file included from /usr/include/string.h:637:0,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:48,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/bits/string2.h:394:14: erreur: storage class specified for parameter `__rawmemchr'
/usr/include/bits/string2.h:969:24: erreur: storage class specified for parameter `__strcspn_c1'
/usr/include/bits/string2.h:972:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:979:24: erreur: storage class specified for parameter `__strcspn_c2'
/usr/include/bits/string2.h:983:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:991:24: erreur: storage class specified for parameter `__strcspn_c3'
/usr/include/bits/string2.h:996:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1045:24: erreur: storage class specified for parameter `__strspn_c1'
/usr/include/bits/string2.h:1048:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1056:24: erreur: storage class specified for parameter `__strspn_c2'
/usr/include/bits/string2.h:1060:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1068:24: erreur: storage class specified for parameter `__strspn_c3'
/usr/include/bits/string2.h:1072:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1121:23: erreur: storage class specified for parameter `__strpbrk_c2'
/usr/include/bits/string2.h:1125:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1132:23: erreur: storage class specified for parameter `__strpbrk_c3'
/usr/include/bits/string2.h:1137:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1172:23: erreur: storage class specified for parameter `__strtok_r_1c'
/usr/include/bits/string2.h:1175:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1204:14: erreur: storage class specified for parameter `__strsep_g'
/usr/include/bits/string2.h:1222:23: erreur: storage class specified for parameter `__strsep_1c'
/usr/include/bits/string2.h:1225:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1232:23: erreur: storage class specified for parameter `__strsep_2c'
/usr/include/bits/string2.h:1235:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string2.h:1259:23: erreur: storage class specified for parameter `__strsep_3c'
/usr/include/bits/string2.h:1263:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
In file included from /usr/include/bits/string2.h:1298:0,
                 from /usr/include/string.h:637,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:48,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/stdlib.h:471:14: erreur: storage class specified for parameter `malloc'
/usr/include/stdlib.h:473:14: erreur: storage class specified for parameter `calloc'
In file included from /usr/include/string.h:637:0,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:48,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/bits/string2.h:1303:14: erreur: storage class specified for parameter `__strdup'
/usr/include/bits/string2.h:1322:14: erreur: storage class specified for parameter `__strndup'
In file included from /usr/include/string.h:642:0,
                 from /usr/lib/qt4/include/QtCore/qbytearray.h:48,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/include/bits/string3.h:23:1: erreur: storage class specified for parameter `__warn_memset_zero_len'
/usr/include/bits/string3.h:51:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:58:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:79:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:93:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:99:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:106:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:122:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:127:14: erreur: storage class specified for parameter `__stpncpy_chk'
/usr/include/bits/string3.h:129:14: erreur: storage class specified for parameter `__stpncpy_alias'
/usr/include/bits/string3.h:135:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:145:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/include/bits/string3.h:153:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
In file included from /usr/lib/qt4/include/QtCore/qbytearray.h:49:0,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/gcc/x86_64-mageia-linux-gnu/4.5.2/include/stdarg.h:40:27: erreur: storage class specified for parameter `__gnuc_va_list'
In file included from /usr/lib/qt4/include/QtCore/qbytearray.h:49:0,
                 from /usr/lib/qt4/include/QtCore/qstring.h:46,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/gcc/x86_64-mageia-linux-gnu/4.5.2/include/stdarg.h:102:24: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `va_list'
In file included from /usr/lib/qt4/include/QtCore/qstring.h:46:0,
                 from /usr/lib/qt4/include/QtCore/qobject.h:48,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qbytearray.h:59:1: erreur: expected declaration specifiers before `QT_MODULE'
/usr/lib/qt4/include/QtCore/qbytearray.h:67:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `qstrlen'
/usr/lib/qt4/include/QtCore/qbytearray.h:70:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `qstrnlen'
/usr/lib/qt4/include/QtCore/qbytearray.h:80:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:81:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:83:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:84:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:85:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:86:51: attention : type defaults to `int' in declaration of `QByteArray'
/usr/lib/qt4/include/QtCore/qbytearray.h:86:62: erreur: expected `;', `,' or `)' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:89:57: erreur: expected declaration specifiers or `...' before `uint'
/usr/lib/qt4/include/QtCore/qbytearray.h:90:1: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `{' token
/usr/lib/qt4/include/QtCore/qbytearray.h:94:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:95:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:98:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:99:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:116:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:118:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qbytearray.h:119:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qbytearray.h:120:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qbytearray.h:121:1: erreur: expected declaration specifiers before `template'
/usr/lib/qt4/include/QtCore/qbytearray.h:123:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qbytearray.h:380:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qbytearray.h:382:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:383:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:384:22: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:395:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:397:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:399:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:403:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QByteArray'
/usr/lib/qt4/include/QtCore/qbytearray.h:406:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:408:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:411:24: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:413:30: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:415:30: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:417:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:419:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QByteArray'
/usr/lib/qt4/include/QtCore/qbytearray.h:421:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:428:22: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:431:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:434:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:437:1: erreur: expected declaration specifiers before `class'
/usr/lib/qt4/include/QtCore/qbytearray.h:469:2: erreur: expected declaration specifiers before `;' token
/usr/lib/qt4/include/QtCore/qbytearray.h:471:17: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QByteArray'
/usr/lib/qt4/include/QtCore/qbytearray.h:473:17: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QByteArray'
/usr/lib/qt4/include/QtCore/qbytearray.h:475:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:477:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:479:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:481:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:483:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:485:18: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:487:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:489:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:491:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:493:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:495:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:497:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:499:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:501:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:503:23: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `:' token
/usr/lib/qt4/include/QtCore/qbytearray.h:505:14: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QByteArray'
/usr/lib/qt4/include/QtCore/qbytearray.h:507:14: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QByteArray'
/usr/lib/qt4/include/QtCore/qbytearray.h:509:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:511:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:513:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:515:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:517:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:519:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:521:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:523:14: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:525:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:527:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:529:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:531:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:533:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:535:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:537:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:539:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:541:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:543:13: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:545:25: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:547:25: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:549:25: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:551:25: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:553:25: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `operator'
/usr/lib/qt4/include/QtCore/qbytearray.h:555:14: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `QByteArray'
/usr/lib/qt4/include/QtCore/qbytearray.h:557:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:559:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:561:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:564:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:566:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:568:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:570:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:572:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `&' token
/usr/lib/qt4/include/QtCore/qbytearray.h:577:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:578:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:582:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:583:1: erreur: expected declaration specifiers before `Q_CORE_EXPORT'
/usr/lib/qt4/include/QtCore/qbytearray.h:584:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `qCompress'
/usr/lib/qt4/include/QtCore/qbytearray.h:586:19: erreur: expected `=', `,', `;', `asm' or `__attribute__' before `qUncompress'
/usr/lib/qt4/include/QtCore/qbytearray.h:590:1: erreur: expected declaration specifiers before `Q_DECLARE_TYPEINFO'
/usr/lib/qt4/include/QtCore/qbytearray.h:591:1: erreur: expected declaration specifiers before `Q_DECLARE_SHARED'
In file included from /usr/lib/qt4/include/QtCore/qobject.h:48:0,
                 from /usr/lib/qt4/include/QtCore/qcoreapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/qapplication.h:45,
                 from /usr/lib/qt4/include/QtGui/QApplication:1,
                 from Cours1.c:1:
/usr/lib/qt4/include/QtCore/qstring.h:60:22: erreur fatale: string : Aucun fichier ou dossier de ce type
compilation terminée.
make: *** [Cours1.o] Erreur 1
[laurent@localhost QT]$



Merci.
0
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 14
17 déc. 2011 à 19:06
Re,

Dans mon menu KDE dans Dévollempent - Environnement de dévellopement -
j'ai bien :

Qt4 Désigner
Qt Créator

Donc j'ai bien QT4 et pas QT3 ?????
0
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 14
17 déc. 2011 à 20:41
Bonsoir

Ma version de QT

$qmake -v
QMake version 2.01a
Using Qt version 4.7.4 in /usr/lib64
$ 

j'ai bien QT4 ?

Merci
0
loupius Messages postés 697 Date d'inscription dimanche 1 novembre 2009 Statut Membre Dernière intervention 31 décembre 2017 148
17 déc. 2011 à 21:18
Donc Qt4 serait aussi installé... alors la commande qmake-qt4 doit être opérationnelle.
Que donne :
  find / -name "qmake-*"
C'est assez long.
Sinon on peut essayer de taper:
  qmake-
suivi de la touche 'TAB' (1 ou 2 fois), que se passe-t-il ? Que propose 'xterm' ?
0
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 14
17 déc. 2011 à 21:29
bonsoir

laurent@localhost test1]$ find / -name "qmake-*"
find: '/lost+found': Permission non accordée
find: '/proc/tty/driver': Permission non accordée
find: '/proc/1/task/1/fd': Permission non accordée
find: '/proc/1/task/1/fdinfo': Permission non accordée
find: '/proc/1/fd': Permission non accordée
find: '/proc/1/fdinfo': Permission non accordée
find: '/proc/2/task/2/fd': Permission non accordée
find: '/proc/2/task/2/fdinfo': Permission non accordée
find: '/proc/2/fd': Permission non accordée
find: '/proc/2/fdinfo': Permission non accordée
find: '/proc/3/task/3/fd': Permission non accordée
find: '/proc/3/task/3/fdinfo': Permission non accordée
find: '/proc/3/fd': Permission non accordée
find: '/proc/3/fdinfo': Permission non accordée
find: '/proc/5/task/5/fd': Permission non accordée
find: '/proc/5/task/5/fdinfo': Permission non accordée
find: '/proc/5/fd': Permission non accordée
find: '/proc/5/fdinfo': Permission non accordée


et ca continue, un nombre de ligne incroyable qui défile.

Merci.
0
loupius Messages postés 697 Date d'inscription dimanche 1 novembre 2009 Statut Membre Dernière intervention 31 décembre 2017 148
17 déc. 2011 à 21:50
Alors il faut filtrer, par exemple:
  find / -name "qmake-*" | grep qmake-
et voir s'il existe un qmake-qt4.
0
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 14
17 déc. 2011 à 23:50
bonsoir

je ne trouve pas de qmake-qt4

sauf
$ find / -name "qt4-*" | grep qt4-
find: '/var/log/samba/cores': Permission non accordée
/usr/share/doc/qt4/doc/html/qt4-mainwindow.html
/usr/share/doc/qt4/doc/html/qt4-7-intro.html
/usr/share/doc/qt4/doc/html/qt4-6-intro.html
/usr/share/doc/qt4/doc/html/qt4-designer.html
find: '/var/log/ppp'/usr/share/doc/qt4/doc/html/qt4-tulip.html
: Permission non accordée
/usr/share/doc/qt4/doc/html/qt4-network.html
find: /usr/share/doc/qt4/doc/html/qt4-interview.html
'/var/log/sudo-io': Permission non accordée
/usr/share/doc/qt4/doc/html/qt4-scribe.html
/usr/share/doc/qt4/doc/html/qt4-styles.html
find: '/var/log/mail'/usr/share/doc/qt4/doc/html/qt4-threads.html
: Permission non accordée
/usr/share/doc/qt4/doc/html/qt4-sql.html
/usr/share/doc/qt4/doc/html/qt4-accessibility.html
/usr/share/doc/qt4/doc/html/qt4-arthur.html
/usr/share/doc/qt4/doc/html/qt4-intro.html
/usr/lib64/ssh/qt4-ssh-askpass
find: '/var/log/cron': Permission non accordée



Merci.
0
loupius Messages postés 697 Date d'inscription dimanche 1 novembre 2009 Statut Membre Dernière intervention 31 décembre 2017 148
18 déc. 2011 à 00:32
Si tu ne trouves pas, c'est qu'il n'y est pas.
Puisque tu utilises la commande 'urpmi' (sans doute avec Mandriva), essaie de savoir ce qu'il existe comme paquetage 'qt' par la commande:
  urpmq qt
et fouille dans le résultat.
0
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 14
18 déc. 2011 à 22:09
Bonsoir,

Ma distribution est Mageia 1 qui est un fork de Mandriva.

J'ai fait un urpmq qt, mais il n'y a rien de spécial, enfin je pense pas ?

# urpmq qt
Pas de paquetage nommé qt
Les paquetages suivants contiennent qt : apache-mod_reqtimeout, avidemux-qt, classpath-qt, cmake-qtgui, ...
Vous pouvez utiliser « -a » pour les sélectionner tous
#


Encore une fois, Merci de votre aide et soutien.
0
Char Snipeur Messages postés 9813 Date d'inscription vendredi 23 avril 2004 Statut Contributeur Dernière intervention 3 octobre 2023 1 297
19 déc. 2011 à 10:32
Salut.
Le plus simple c'est peut être de repartir de 0 : utiliser le gestionnaire de paquet et désinstaller tout ce qui a rapport avec Qt, puis télécharger les sources de Qt 4 et tout compiler.
0