Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Configuring Cplex in Xcode C++

  • 1.  Configuring Cplex in Xcode C++

    Posted Thu January 04, 2018 02:01 AM

    Originally posted by: evelovestokyo


    Hello,

         I have problem configuring Cplex in Xcode c++, which is quite straightforward, but I cannot fix it.

         After creating a new Xcode project, and making adjustments according to online tutorial (e.g. adding library path), I paste the example attached in Cplex folder. 

         However, it turns out:

     

    Libstdc++ is deprecated; move to libc++ [-Wdeprecated]

    Library not found for -lcplexdistmip

    Linker command failed with exit code 1 (use -v to see invovation)

     

          I tried nearly all solutions to similar problem I can find online, but still have no idea how to fix it.

          Can anyone help me out? 

     

    Thanks!


    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: Configuring Cplex in Xcode C++

    Posted Thu January 04, 2018 03:51 AM

    What version of CPLEX do you use? What version of Xcode/MacOS?

    Do you actually use the distributed MIP solver in your code? If not then try not linking with cplexdistmip. If you need the distributed MIP solver then make sure you have directory INSTALLDIR/cplex/lib/x86-64_osx/static_pic in your library path.

    If you cannot resolve your problems then please show the full linker command line.

     


    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: Configuring Cplex in Xcode C++

    Posted Thu January 04, 2018 04:26 AM

    Originally posted by: evelovestokyo


    Thank you so much! As a newbie, I need some time to look into it. Tks!

     


    #DecisionOptimization
    #MathematicalProgramming-General