error: iostream.h due to including cplex

前端 未结 2 589
南旧
南旧 2020-12-18 06:37

I am trying to use cplex in eclipse in Ubuntu 12.04 but when I include ilocplex.h I get the following error

/opt/ibm/ILOG/CPLEX_Studio124/concert/include/ilc         


        
相关标签:
2条回答
  • 2020-12-18 07:03

    Try reading the manual again or look again at the samples. Cplex has supported both the old style iostream.h and the newer C++ iostream standard for at least a decade. I just don't have the manual with me right now to give the full reference.

    0 讨论(0)
  • 2020-12-18 07:05

    At the time ILOG's Concert library was first released, the older iostream.h headers were still common in C++ compilers, but it supports the standard iostream libraries. To use the standard headers and libraries, you need to define the IL_STD preprocessor symbol. Instructions for defining preprocessor directives in Eclipse/C++ can be found in this question.

    0 讨论(0)
提交回复
热议问题