Bonjour,

je compile un projet avec MinGW, dans lequel j'ai un module utilisant lpsolve5.

A la compilation, j'ai une pléthore d'erreurs, donc seulement les 2 dernières se trouvent dans mon fichier cpp.


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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
 
**** Build of configuration Default for project otawa ****
 
mingw32-make all 
[  9%] Building CXX object src/lp_solve5/CMakeFiles/lp_solve5.dir/lp_solve5.cpp.obj
In file included from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/objbase.h:71:0,
                 from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/ole2.h:9,
                 from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:114,
                 from D:\Lecourt\workspace\otawa\..\lp_solve_5.5.0.15_dev_win32/lp_types.h:5,
                 from D:\Lecourt\workspace\otawa\..\lp_solve_5.5.0.15_dev_win32/lp_lib.h:210,
                 from D:\Lecourt\workspace\otawa\src\lp_solve5\lp_solve5.cpp:30:
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/wtypes.h:97:16: error: expected unqualified-id before string constant
In file included from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/objbase.h:73:0,
                 from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/ole2.h:9,
                 from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:114,
                 from D:\Lecourt\workspace\otawa\..\lp_solve_5.5.0.15_dev_win32/lp_types.h:5,
                 from D:\Lecourt\workspace\otawa\..\lp_solve_5.5.0.15_dev_win32/lp_lib.h:210,
                 from D:\Lecourt\workspace\otawa\src\lp_solve5\lp_solve5.cpp:30:
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/objidl.h:284:2: error: expected unqualified-id before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/objidl.h:359:3: error: expected unqualified-id before string constant
In file included from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:158:0,
                 from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/ole2.h:11,
                 from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:114,
                 from D:\Lecourt\workspace\otawa\..\lp_solve_5.5.0.15_dev_win32/lp_types.h:5,
                 from D:\Lecourt\workspace\otawa\..\lp_solve_5.5.0.15_dev_win32/lp_lib.h:210,
                 from D:\Lecourt\workspace\otawa\src\lp_solve5\lp_solve5.cpp:30:
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oaidl.h:213:3: error: expected unqualified-id before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oaidl.h:228:3: error: expected unqualified-id before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oaidl.h:276:3: error: expected unqualified-id before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oaidl.h:290:3: error: expected unqualified-id before string constant
In file included from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/ole2.h:11:0,
                 from c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:114,
                 from D:\Lecourt\workspace\otawa\..\lp_solve_5.5.0.15_dev_win32/lp_types.h:5,
                 from D:\Lecourt\workspace\otawa\..\lp_solve_5.5.0.15_dev_win32/lp_lib.h:210,
                 from D:\Lecourt\workspace\otawa\src\lp_solve5\lp_solve5.cpp:30:
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:210:44: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:210:44: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:211:51: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:211:51: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:212:41: error: expected primary-expression before ',' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:212:47: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:212:48: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:212:48: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:251:34: error: expected primary-expression before 'unsigned'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:251:48: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:260:33: error: expected primary-expression before 'short'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:260:39: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:269:33: error: expected primary-expression before 'long'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:269:38: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:278:33: error: expected primary-expression before 'float'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:278:39: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:287:33: error: expected primary-expression before 'double'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:287:40: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:292:43: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:292:43: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:293:34: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:293:34: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:294:33: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:294:33: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:295:34: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:295:34: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:296:35: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:296:35: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:297:31: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:297:31: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:298:57: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:298:57: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:299:46: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:299:46: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:300:43: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:300:43: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:306:35: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:306:36: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:306:36: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:316:39: error: expected primary-expression before ',' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:316:40: error: expected primary-expression before 'unsigned'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:316:58: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:316:59: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:316:59: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:324:47: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:324:48: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:324:48: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:367:28: error: redefinition of 'HRESULT VarUI1FromDate'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:251:28: error: 'HRESULT VarUI1FromDate' previously defined here
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:367:38: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:367:39: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:383:27: error: redefinition of 'HRESULT VarI2FromDate'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:260:27: error: 'HRESULT VarI2FromDate' previously defined here
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:383:38: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:383:39: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:399:27: error: redefinition of 'HRESULT VarI4FromDate'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:269:27: error: 'HRESULT VarI4FromDate' previously defined here
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:399:37: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:399:38: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:415:39: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:415:40: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:415:40: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:432:27: error: redefinition of 'HRESULT VarR4FromDate'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:278:27: error: 'HRESULT VarR4FromDate' previously defined here
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:432:38: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:432:39: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:448:27: error: redefinition of 'HRESULT VarR8FromDate'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:287:27: error: 'HRESULT VarR8FromDate' previously defined here
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:448:33: error: expected primary-expression before 'double'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:459:34: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:459:34: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:460:34: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:460:34: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:461:33: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:461:33: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:462:35: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:462:35: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:463:34: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:463:34: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:464:35: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:464:35: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:465:49: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:465:49: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:466:40: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:466:40: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:467:36: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:467:36: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:468:35: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:468:35: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:469:37: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:469:37: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:470:43: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:470:43: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:471:31: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:471:31: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:472:38: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:472:38: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:473:46: error: expected identifier before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:473:46: error: expected ',' or '...' before string constant
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:481:27: error: redefinition of 'HRESULT VarCyFromDate'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:306:27: error: 'HRESULT VarCyFromDate' previously defined here
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:481:35: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:481:36: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:498:29: error: redefinition of 'HRESULT VarBstrFromDate'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:316:29: error: 'HRESULT VarBstrFromDate' previously defined here
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:498:39: error: expected primary-expression before ',' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:498:45: error: expected primary-expression before ',' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:498:50: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:498:51: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:514:29: error: redefinition of 'HRESULT VarBoolFromDate'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:324:29: error: 'HRESULT VarBoolFromDate' previously defined here
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:514:47: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:514:48: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:530:33: error: expected primary-expression before 'signed'
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:530:45: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:546:40: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:546:41: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:546:41: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:563:39: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:563:40: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:563:40: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:578:41: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:578:42: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:578:42: error: initializer expression list treated as compound expression
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:595:41: error: expected primary-expression before '*' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:595:42: error: expected primary-expression before ')' token
c:\win16app\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/oleauto.h:595:42: error: initializer expression list treated as compound expression
D:\Lecourt\workspace\otawa\src\lp_solve5\lp_solve5.cpp: In member function 'virtual bool otawa::lp_solve5::System::solve(otawa::WorkSpace*)':
D:\Lecourt\workspace\otawa\src\lp_solve5\lp_solve5.cpp:591:42: error: invalid conversion from 'int (*)(lprec*, void*)' to 'int (*)(lprec*, void*)'
D:\Lecourt\workspace\otawa\src\lp_solve5\lp_solve5.cpp:591:42: error:   initializing argument 2 of 'void put_abortfunc(lprec*, int (*)(lprec*, void*), void*)'
mingw32-make[2]: *** [src/lp_solve5/CMakeFiles/lp_solve5.dir/lp_solve5.cpp.obj] Error 1
mingw32-make[1]: *** [src/lp_solve5/CMakeFiles/lp_solve5.dir/all] Error 2
mingw32-make: *** [all] Error 2
Avec quelques recherches sur google, il était question d'un oubli de ; à la fin de la déclaration d'une classe C++, j'ai vérifié, ce n'est pas le cas.

Mais je n'ai aucune idée de ce que ça pourrait être.

Je met juste les include de lp_solve5.cpp, le fichier cpp fait plus de 700 lignes.
La ligne 30 est l'include de lp_lib.h
Code C++ : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
#include <elm/assert.h>
#include <elm/io.h>
#include <otawa/ilp.h>
#include <elm/genstruct/HashTable.h>
#include <elm/genstruct/Vector.h>
#include <otawa/ilp/ILPPlugin.h>
#include <otawa/prog/WorkSpace.h>
#include <lp_lib.h>
#include <math.h>