Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  Cannot open include file: 'iostream.h'?

    Posted Tue June 15, 2010 05:47 PM

    Originally posted by: SystemAdmin


    I tried to do a simple example; the source code is simple; just declare some variables. I compiled the source code and received the error messages: " Cannot open include file: 'ilcplex/ilocplex.h'? ". I followed the steps in the thread

    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14392989&#14392989

    and another error appeared : Cannot open include file: 'iostream.h'?

    For more detail, I added a new empty project into an existing sample project (ilog\cplex121\examples\...). The sample project were compiled successfully and it works well.

    I work with VS2008, C++, cplex 12.1, windows vista.

    Thanks for your help.

    Minh.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Cannot open include file: 'iostream.h'?

    Posted Tue June 15, 2010 05:52 PM

    Originally posted by: SystemAdmin


    The error message is:

    1>C:\ILOG\Concert29\include\ilconcert/ilosys.h(382) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Cannot open include file: 'iostream.h'?

    Posted Tue June 15, 2010 06:20 PM

    Originally posted by: SystemAdmin


    I viewed the include directory of vs2008; and there is only a file with name "iostream". There are also other header files ".h", but none of them is "iostream.h".
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Cannot open include file: 'iostream.h'?

    Posted Mon December 06, 2010 05:47 AM

    Originally posted by: dorien


    I have the same problem.

    iostream.h is a fairly standard c++ library. Only, the iostream.h declaration is depreciated. Now you should use "iostream" (without the .h). However, if I remove the .h from the cplex files, I get a bunch of errors and the following warning:

    /usr/include/c++/4.5/backward/backward_warning.h:28: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
    


    What does this mean I shoud do?

    Where you able to solve this?
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Cannot open include file: 'iostream.h'?

    Posted Mon December 06, 2010 05:58 AM