IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage C++ Discussion :

plein d'erreurs supposément dans des headers de MinGW


Sujet :

Langage C++

  1. #1
    Expert confirmé Avatar de ManusDei
    Homme Profil pro
    vilain troll de l'UE
    Inscrit en
    Février 2010
    Messages
    1 619
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France

    Informations professionnelles :
    Activité : vilain troll de l'UE

    Informations forums :
    Inscription : Février 2010
    Messages : 1 619
    Points : 4 352
    Points
    4 352
    Par défaut plein d'erreurs supposément dans des headers de MinGW
    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>

  2. #2
    Expert confirmé Avatar de ManusDei
    Homme Profil pro
    vilain troll de l'UE
    Inscrit en
    Février 2010
    Messages
    1 619
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France

    Informations professionnelles :
    Activité : vilain troll de l'UE

    Informations forums :
    Inscription : Février 2010
    Messages : 1 619
    Points : 4 352
    Points
    4 352
    Par défaut
    Alors, j'ai créé un fichier lpsolve5test.cpp pour vérifier de manière incrémentale d'où venait le problème.

    Voilà l'intégralité du fichier pour l'instant, et ça plante déjà O_o
    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>

    Je vais essayer en rajoutant les include un par un.

  3. #3
    Responsable 2D/3D/Jeux


    Avatar de LittleWhite
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2008
    Messages
    26 919
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Mai 2008
    Messages : 26 919
    Points : 220 492
    Points
    220 492
    Billets dans le blog
    127
    Par défaut
    Bonjour,

    Il est possible que l'ordre des includes posent problèmes.

  4. #4
    Expert confirmé Avatar de ManusDei
    Homme Profil pro
    vilain troll de l'UE
    Inscrit en
    Février 2010
    Messages
    1 619
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France

    Informations professionnelles :
    Activité : vilain troll de l'UE

    Informations forums :
    Inscription : Février 2010
    Messages : 1 619
    Points : 4 352
    Points
    4 352
    Par défaut
    Bonjour,

    j'ai essayé avec un fichier contenant juste

    Code CPP : Sélectionner tout - Visualiser dans une fenêtre à part
    #include <lp_lib.h>

    Et le problème persiste. Pas un problème d'ordre des include, mais peut-être un problème avec minGW.

  5. #5
    Responsable 2D/3D/Jeux


    Avatar de LittleWhite
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2008
    Messages
    26 919
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Mai 2008
    Messages : 26 919
    Points : 220 492
    Points
    220 492
    Billets dans le blog
    127
    Par défaut
    Quels sont vos sources actuelles?
    Que contient lp_lib.h
    Quels sont les erreurs ?

    (Je parle du projet minimaliste)

  6. #6
    Expert confirmé Avatar de ManusDei
    Homme Profil pro
    vilain troll de l'UE
    Inscrit en
    Février 2010
    Messages
    1 619
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France

    Informations professionnelles :
    Activité : vilain troll de l'UE

    Informations forums :
    Inscription : Février 2010
    Messages : 1 619
    Points : 4 352
    Points
    4 352
    Par défaut
    Ma source actuelle est un fichier lp_solve5test.cpp qui contient uniquement

    lp_lib.h est un des headers du projet lp_solve, et est trop gros pour être inclus en totalité ici (117Ko)

    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
    #ifndef HEADER_lp_lib
    #define HEADER_lp_lib
     
    # if defined _WIN32 && !defined __GNUC__
    #  define isnan _isnan
    # endif
    #if defined NOISNAN
    # define isnan(x) FALSE
    #endif
     
    #define SETMASK(variable, mask)     variable |= mask
    #define CLEARMASK(variable, mask)   variable &= ~(mask)
    #define TOGGLEMASK(variable, mask)  variable ^= mask
    #define ISMASKSET(variable, mask)   (MYBOOL) (((variable) & (mask)) != 0)
     
     
    #define DoMatrixRounding                  /* Round A matrix elements to precision */
    #define DoBorderRounding            /* Round RHS, bounds and ranges to precision */
    #define Phase1EliminateRedundant        /* Remove rows of redundant artificials  */
    #define FixViolatedOptimal
    #define ImproveSolutionPrecision                 /* Round optimal solution values */
    #define ResetMinitOnReinvert
    #define UseMilpExpandedRCF         /* Non-ints in reduced cost bound tightening */
    /*#define UseMilpSlacksRCF */  /* Slacks in reduced cost bound tightening (degen
                                      prone); requires !SlackInitMinusInf */
    #define LegacySlackDefinition      /* Slack as the "value of the constraint" */
     
     
    #define libBLAS                  2        /* 0: No, 1: Internal, 2: External */
    #define libnameBLAS        "myBLAS"
     
     
    #if !defined LoadInverseLib
    # define LoadInverseLib TRUE          /* Enable alternate inverse libraries */
    #endif
     
    #define DEF_OBJINBASIS        TRUE  /* Additional rows inserted at the top (1 => OF) */
     
    #define INVERSE_NONE            -1
    #define INVERSE_LEGACY           0
    #define INVERSE_ETAPFI           1
    #define INVERSE_LUMOD            2
    #define INVERSE_LUSOL            3
    #define INVERSE_GLPKLU           4
     
    #ifndef RoleIsExternalInvEngine            /* Defined in inverse DLL drivers */
      #ifdef ExcludeNativeInverse
        #define INVERSE_ACTIVE       INVERSE_NONE       /* Disable native engine */
      #else
        #define INVERSE_ACTIVE       INVERSE_LEGACY      /* User or DLL-selected */
      #endif
    #endif
     
     
     
    #define LANGUAGE_NONE           -1
    #define LANGUAGE_LEGACYLP        0
    #define LANGUAGE_CPLEXLP         1
    #define LANGUAGE_MPSX            2
    #define LANGUAGE_LPFML           3
    #define LANGUAGE_MATHPROG        4
    #define LANGUAGE_AMPL            5
    #define LANGUAGE_GAMS            6
    #define LANGUAGE_ZIMPL           7
    #define LANGUAGE_S               8
    #define LANGUAGE_R               9
    #define LANGUAGE_MATLAB         10
    #define LANGUAGE_OMATRIX        11
    #define LANGUAGE_SCILAB         12
    #define LANGUAGE_OCTAVE         13
    #define LANGUAGE_EMPS           14
     
    #ifndef RoleIsExternalLanguageEngine      /* Defined in XLI driver libraries */
      #ifdef ExcludeNativeLanguage
        #define LANGUAGE_ACTIVE       LANGUAGE_NONE     /* Disable native engine */
      #else
        #define LANGUAGE_ACTIVE       LANGUAGE_CPLEXLP   /* User or DLL-selected */
      #endif
    #endif
     
     
    /* Default parameters and tolerances                                         */
    /* ------------------------------------------------------------------------- */
    #define OriginalPARAM           0
    #define ProductionPARAM         1
    #define ChvatalPARAM            2
    #define LoosePARAM              3
    #if 1
      #define ActivePARAM           ProductionPARAM
    #else
      #define ActivePARAM           LoosePARAM
    #endif
     
     
    /* Miscellaneous settings                                                    */
    /* ------------------------------------------------------------------------- */
    #ifndef Paranoia
      #ifdef _DEBUG
        #define Paranoia
      #endif
    #endif
     
     
    /* Program version data                                                      */
    /* ------------------------------------------------------------------------- */
    #define MAJORVERSION             5
    #define MINORVERSION             5
    #define RELEASE                  2
    #define BUILD                    0
    #define BFPVERSION              12       /* Checked against bfp_compatible() */
    #define XLIVERSION              12       /* Checked against xli_compatible() */
    /* Note that both BFPVERSION and XLIVERSION typically have to be incremented
       in the case that the lprec structure changes.                             */
     
     
    /* Include/header files                                                      */
    /* ------------------------------------------------------------------------- */
    #include <sys/types.h>
    #include <stdlib.h>
    #include <string.h>
    #include <math.h>
    #include <stdio.h>
     
    #include "lp_types.h"
    #include "lp_utils.h"
     
    #if (LoadInverseLib == TRUE) || (LoadLanguageLib == TRUE)
      #ifdef WIN32
        #include <windows.h>
      #else
        #include <dlfcn.h>
      #endif
    #endif
     
    #ifndef BFP_CALLMODEL
      #ifdef WIN32
        #define BFP_CALLMODEL __stdcall   /* "Standard" call model */
      #else
        #define BFP_CALLMODEL
      #endif
    #endif
    #ifndef XLI_CALLMODEL
      #define XLI_CALLMODEL BFP_CALLMODEL
    #endif
    Les erreurs sont exactements les mêmes que celles du premier post.
    Je suis allé voir les fichiers header de MinGW, les lignes en questions sont correctement écrites. Je soupçonne une incompatibilité quelconque entre lpsolve et mingw.

    La première erreur trouvée à la compilation correspond à cette ligne :

    PS : j'ai posé le problème sur la liste de diffusion de mingw, qui vivra verra...

  7. #7
    Expert confirmé Avatar de ManusDei
    Homme Profil pro
    vilain troll de l'UE
    Inscrit en
    Février 2010
    Messages
    1 619
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France

    Informations professionnelles :
    Activité : vilain troll de l'UE

    Informations forums :
    Inscription : Février 2010
    Messages : 1 619
    Points : 4 352
    Points
    4 352
    Par défaut
    Trouvé (mais pas par moi).

    En fait j'ai une autre variable DATE, qui donne la date de compilation, passée en paramètre de g++ avec -D.
    D'où le problème.
    Bizarrement le problème n'existait pas sous linux avec autotools.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. EventTable dans des headers séparés
    Par fiitz dans le forum wxWidgets
    Réponses: 2
    Dernier message: 11/06/2008, 15h15
  2. php erreur dans le header
    Par carmen256 dans le forum Langage
    Réponses: 3
    Dernier message: 07/04/2006, 14h53
  3. récupérer les erreurs php dans des exceptions
    Par jeanvincent dans le forum Langage
    Réponses: 6
    Dernier message: 14/10/2005, 17h26
  4. Réponses: 9
    Dernier message: 25/09/2005, 17h33
  5. Gestion des headers dans un Makefile
    Par Weren dans le forum Autres éditeurs
    Réponses: 1
    Dernier message: 09/11/2004, 11h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo