Bonjour tout le monde,

J'ai un soucis avec des erreurs QT que je ne comprends pas.
Les erreurs forment un tas et je ne trouvent carrément plus la source de mes problèmes...



Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
14:56:14: Starting: "/usr/bin/make" 
g++ -c -m64 -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -o graphic.o graphic.cpp
In file included from /usr/include/qt5/QtCore/qalgorithms.h:45:0,
                 from /usr/include/qt5/QtCore/qlist.h:45,
                 from /usr/include/qt5/QtCore/QList:1,
                 from graphic.h:3,
                 from graphic.cpp:1:
/usr/include/qt5/QtCore/qglobal.h: In instantiation of 'class QForeachContainer<QList<Def_Relation*>*>':
graphic.cpp:42:5:   required from here
/usr/include/qt5/QtCore/qglobal.h:853:32: error: 'QList<Def_Relation*>*' is not a class, struct, or union type
     typename T::const_iterator i, e;
                                ^
/usr/include/qt5/QtCore/qglobal.h:853:35: error: 'QList<Def_Relation*>*' is not a class, struct, or union type
     typename T::const_iterator i, e;
                                   ^
graphic.cpp: In member function 'QList<QList<Def_Item*>*>* Graphic::connectedComponent(QList<Def_Item*>*, QList<Def_Relation*>*)':
/usr/include/qt5/QtCore/qglobal.h:858:38: error: 'class QForeachContainer<QList<Def_Relation*>*>' has no member named 'i'
      !_container_.brk && _container_.i != _container_.e;              \
                                      ^
/usr/include/qt5/QtCore/qglobal.h:911:21: note: in expansion of macro 'Q_FOREACH'
 #    define foreach Q_FOREACH
                     ^
graphic.cpp:42:5: note: in expansion of macro 'foreach'
     foreach (Def_Relation* i, w){
     ^
/usr/include/qt5/QtCore/qglobal.h:858:55: error: 'class QForeachContainer<QList<Def_Relation*>*>' has no member named 'e'
      !_container_.brk && _container_.i != _container_.e;              \
                                                       ^
/usr/include/qt5/QtCore/qglobal.h:911:21: note: in expansion of macro 'Q_FOREACH'
 #    define foreach Q_FOREACH
                     ^
graphic.cpp:42:5: note: in expansion of macro 'foreach'
     foreach (Def_Relation* i, w){
     ^
/usr/include/qt5/QtCore/qglobal.h:859:57: error: 'class QForeachContainer<QList<Def_Relation*>*>' has no member named 'i'
      __extension__  ({ ++_container_.brk; ++_container_.i; }))                       \
                                                         ^
/usr/include/qt5/QtCore/qglobal.h:911:21: note: in expansion of macro 'Q_FOREACH'
 #    define foreach Q_FOREACH
                     ^
graphic.cpp:42:5: note: in expansion of macro 'foreach'
     foreach (Def_Relation* i, w){
     ^
/usr/include/qt5/QtCore/qglobal.h:860:34: error: 'class QForeachContainer<QList<Def_Relation*>*>' has no member named 'i'
     for (variable = *_container_.i;; __extension__ ({--_container_.brk; break;}))
                                  ^
/usr/include/qt5/QtCore/qglobal.h:911:21: note: in expansion of macro 'Q_FOREACH'
 #    define foreach Q_FOREACH
                     ^
graphic.cpp:42:5: note: in expansion of macro 'foreach'
     foreach (Def_Relation* i, w){
     ^
/usr/include/qt5/QtCore/qglobal.h: In instantiation of 'QForeachContainer<T>::QForeachContainer(const T&) [with T = QList<Def_Relation*>*]':
graphic.cpp:42:5:   required from here
/usr/include/qt5/QtCore/qglobal.h:850:81: error: using invalid field 'QForeachContainer<T>::i'
     inline QForeachContainer(const T& t) : c(t), brk(0), i(c.begin()), e(c.end()) { }
                                                                                 ^
/usr/include/qt5/QtCore/qglobal.h:850:81: error: request for member 'begin' in '((QForeachContainer<QList<Def_Relation*>*>*)this)->QForeachContainer<QList<Def_Relation*>*>::c', which is of pointer type 'QList<Def_Relation*>* const' (maybe you meant to use '->' ?)
/usr/include/qt5/QtCore/qglobal.h:850:81: error: using invalid field 'QForeachContainer<T>::e'
/usr/include/qt5/QtCore/qglobal.h:850:81: error: request for member 'end' in '((QForeachContainer<QList<Def_Relation*>*>*)this)->QForeachContainer<QList<Def_Relation*>*>::c', which is of pointer type 'QList<Def_Relation*>* const' (maybe you meant to use '->' ?)
make: *** [graphic.o] Error 1
Quelqu'un pourrait m'éclairer?

Merci !