错误:iostream.h由于包括cplex [英] error: iostream.h due to including cplex

查看:570
本文介绍了错误:iostream.h由于包括cplex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Ubuntu 12.04中使用eclipse中的cplex,但是当我包含ilocplex.h时,我收到以下错误

  /opt/ibm/ILOG/CPLEX_Studio124/concert/include/ilconcert/ilosys.h:360:22:致命错误:iostream.h:没有这样的文件或目录

只有两个包含如下:

  #include< ; ilcplex / ilocplex.h> 
#include< iostream>

如果有人可以帮助我,我将不胜感激。

解决方案

当ILOG的Concert库首次发布时,较早的iostream.h头文件在C ++编译器中仍然很常见,但它支持标准的iostream库。要使用标准标头和库,您需要定义 IL_STD 预处理器符号。在Eclipse / C ++中定义预处理指令的说明可以在这个问题


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/ilconcert/ilosys.h:360:22: fatal error: iostream.h: No such file or directory

The only two includes are written as follows:

#include <ilcplex/ilocplex.h>
#include <iostream>

I would appreciate if anyone could help me with this.

解决方案

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.

这篇关于错误:iostream.h由于包括cplex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆