Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cplex and VC++

    Posted 04/17/08 06:26 PM

    Originally posted by: SystemAdmin


    [lella79 said:]

    Hi,

    do you know if CPLEX 10.0 supports Visual C++ 2003?
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Cplex and VC++

    Posted 04/23/08 01:50 AM

    Originally posted by: SystemAdmin


    [MaryFenelon said:]

    CPLEX 10.0 does support Visual C++ 2003.

    It's not true that any C++ compiler can be used with CPLEX.

    It is possible other C/C++ compilers can be used with the Callable Library API of CPLEX (the C API) since the Callalble Library is provided as a DLL for Windows.  Using the Concert C++ API, due to C++ name mangling and other considerations, requires compilers which are compatible with one of the of VC++ 2003/2005/2008, which are supported by CPLEX.  I don't know if there are such compilers.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Cplex and VC++

    Posted 04/30/08 10:37 PM

    Originally posted by: SystemAdmin


    [Pierre said:]

    Hi all,
    I am not quiet sure if CPLEX 9 does work with VC++ 2005(version 8). I took the Blend example under stat_mta and copied into another file.cpp and created another project, then I could compile the file as shown below that it does not show any error. But when I build the project, 32 errors are shown in the second message below.  In deed, I followed the information or read me file which explains how to configure this with the VC++; but it doesn’t take in consideration the new VC++ 2005 that it has not ST for example. Also when I tried to compile one example under Stat_sta with the Single threaded configuration, it ask for the library libc.lib, which was removed in VC++ 2005.
    To this end, I would be grateful to you if you can can help me in finding a solution to this problem.


    ------ Build started: Project: Project3, Configuration: Release Win32 ------
    Compiling...
    TestProject3.cpp
    Build log was saved at "file://c:\Documents and Settings\Pierre\Mes documents\Visual Studio 2005\Projects\Project3\Release\BuildLog.htm"
    Project3 - 0 error(s), 0 warning(s)
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


    ------ Build started: Project: Project3, Configuration: Release Win32 ------
    Linking...
    concert.lib(ilosolution.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(ilorandom.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(iloset.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(ilomodel.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(ilometaconstraints.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(ilodiff.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(ilosos.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(iloextractable.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(iloexpression.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(ilorange.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(iloalg.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    ilocplex.lib(ilolinbasic.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    ilocplex.lib(ilolinlogic.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(iloobjective.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(iloenv.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ)
    concert.lib(ilosolution.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(ilorandom.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(iloset.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(ilomodel.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(ilometaconstraints.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(ilodiff.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(ilosos.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(iloextractable.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(iloexpression.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(ilorange.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(iloalg.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    ilocplex.lib(ilolinbasic.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    ilocplex.lib(ilolinlogic.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(iloobjective.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(iloenv.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
    concert.lib(iloenv.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ)
    C:\Documents and Settings\Alshaer\Mes documents\Visual Studio 2005\Projects\Project3\Release\Project3.exe : fatal error LNK1120: 3 unresolved externals
    Build log was saved at "file://c:\Documents and Settings\Pierre\My documents\Visual Studio 2005\Projects\Project3\Release\BuildLog.htm"
    Project3 - 32 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Thanks
    Pierre

    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Cplex and VC++

    Posted 05/01/08 08:16 PM

    Originally posted by: SystemAdmin


    [MaryFenelon said:]

    CPLEX 9 does not work with VC++ 8, only VC++ 7.1 and MSVC6. VC++ 8 did not exist when CPLEX 9 was released.

    The errors you are seeing are due to the incompatibility between VC++ 8 and VC++ 7.1 (or MSVC6 if that is the version of the project file you started with); the concert.lib and ilocplex.lib built with VC++ 7.1 can not be used with object files built with VC++ 8.
    #CPLEXOptimizers
    #DecisionOptimization