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

查看:548
本文介绍了错误: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>

如果有人可以帮助我,我将非常感激。

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天全站免登陆