Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Visual studio 2010 and Cplex 12.1

    Posted Wed July 21, 2010 01:52 AM

    Originally posted by: vincentve


    Dear All,

    i freshly installed VS 2010 and Cplex 12.1. Compiled a small example, everything is fine.
    Added "#include <ilcplex/cplex.h>". Everything is fine.

    Added "#include <ilconcert/ilomodel.h>". Got failure message "fatal error C1083: Datei (Include) kann nicht geöffnet werden: "iostream.h": No such file or directory" (meaning File cannot be opened). Here, i was kind of stuck. Added "#define ILOUSESTL" in order to have "iostream" included instead of "iostream.h" (without really knowing what i am doing). Now there are lots of error messages:

    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(631): error C2061: Syntaxfehler: Bezeichner 'ostream'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(645): error C2061: Syntaxfehler: Bezeichner 'ostream'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(665): error C2143: Syntaxfehler: Es fehlt ';' vor '&'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(665): error C2433: 'ostream': 'inline' bei der Deklaration von Daten nicht zulässig
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(665): error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(665): error C2065: 'o': nichtdeklarierter Bezeichner
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(665): error C2059: Syntaxfehler: 'const'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(666): error C2143: Syntaxfehler: Es fehlt ';' vor '{'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(666): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(671): error C2143: Syntaxfehler: Es fehlt ';' vor '&'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(671): error C2433: 'ostream': 'inline' bei der Deklaration von Daten nicht zulässig
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(671): error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(671): error C2086: 'int ostream': Neudefinition
    1> c:\program files\ilog\concert29\include\ilconcert\ilosys.h(665): Siehe Deklaration von 'ostream'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(671): error C2065: 'o': nichtdeklarierter Bezeichner
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(671): error C2059: Syntaxfehler: 'const'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(672): error C2143: Syntaxfehler: Es fehlt ';' vor '{'
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(672): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(696): error C2065: 'ostringstream': nichtdeklarierter Bezeichner
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(696): error C2065: 'stream': nichtdeklarierter Bezeichner
    1>c:\program files\ilog\concert29\include\ilconcert\ilosys.h(696): fatal error C1903: Weiterverarbeitung nach vorherigem Fehler nicht möglich; Kompilierung wird abgebrochen.

    Would appreciate any suggestions how to get rid of this.

    Thanks,
    Dirk
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Visual studio 2010 and Cplex 12.1

    Posted Wed July 21, 2010 02:13 AM

    Originally posted by: SystemAdmin


    Maybe anything of the stuff here is helpful?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Visual studio 2010 and Cplex 12.1

    Posted Wed July 21, 2010 03:19 AM

    Originally posted by: vincentve


    Sounds really familiar. I knew that one though (that is how i came up with "#define ILOUSESTL".

    Basic question is: why does "#include <ilconcert/ilomodel.h>" not work.

    Best,
    Dirk
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Visual studio 2010 and Cplex 12.1

    Posted Fri September 03, 2010 12:09 PM

    Originally posted by: sdjena


    Before hitting other problems, I had something very similar as well. It seems that Iostream.h is outdated, so you should instead use <iostream>. Go to project properties -> C++ -> Preprocessor and then define "IL_STD" within the 'preprocessor definitions'. That should help using the correct library.
    #CPLEXOptimizers
    #DecisionOptimization