Bogue #734
abort() non définit
Description
Messages d'erreur :
../../dev/src/core/logger.cpp: In static member function ‘static void QExtend::Logger::log(QExtend::LoggerType, const char*, const char*)’:
../../dev/src/core/logger.cpp:139: error: ‘abort’ was not declared in this scope
make1: *** [logger.o] Erreur 1
Cela fonctionne en ajoutant #include <stdlib.h> mais ça serait peut être mieux de quitter l'application en utilisant static void QCoreApplication::exit(int returnCode = 0) (http://doc.qt.nokia.com/4.7-snapshot/qcoreapplication.html#exit)
History
#1
Updated by gbdivers over 12 years ago
petits détails :
- OS : ubuntu 10.4 64b
- Qt 4.7 beta
#2
Updated by gbdivers over 12 years ago
erreur de commit, j'ai ajouté #include <stdlib.h>
Vérifier que ça fonctionne encore de ton coté
#3
Updated by yan over 12 years ago
Au lieu de stdlib.h il faut normalement utilisé cstdlib.
Pourquoi en as tu besoin pour le logger??
#4
Updated by gbdivers over 12 years ago
Il utilise la fonction abort() de stdlib pour quitter l'application en cas de qFatal()
Pour ça que je disais que ça serait mieux d'utiliser QCoreApplication::exit()
#5
Updated by yan over 12 years ago
ok.
+1 alors
#6
Updated by johnlamericain over 12 years ago
- Status changed from Assigné to Fermé
Changement effectué !