Originally posted by: M9FH_Haris_Gavranovic
I have the following problem:
When I include in a header file (.h) in order to define a matrix, for example,
#include "ilcplex/ilocplex.h"
ILOSTLBEGIN
typedef IloArray<IloNumVarArray> NumVarMatrix;
I have the following error from the compiler:
/opt/ibm/ILOG/CPLEX_Enterprise_Server125/CPLEX_Studio/concert/include/ilconcert/ilosolution.h: At global scope:
/opt/ibm/ILOG/CPLEX_Enterprise_Server125/CPLEX_Studio/concert/include/ilconcert/ilosolution.h:2755:17: error: expected identifier before numeric constant
....
and many other errors.
I I move everything in cpp file there is no compilation error. Could you please help me with this ? Am I doing something wrong?
#CPLEXOptimizers#DecisionOptimization