• 1 reply
  • Latest Post - ‏2013-10-01T16:47:05Z by rdumeur
8 Posts

Pinned topic linking CP Optimizer to Xcode in mac

‏2013-10-01T16:33:08Z |

Hi everyone,


I've already installed Cplex studio 1251, and Xcode on my mac. I also gave the -lstdc++, -lcp, -lilocplex, -lcplex, -lconcert, -lm linker flags as well as cplex, cpoptimizer and concert libraries addresses in "library search paths" and "header search paths". However, I receive tons of errors.


The most important one is that it does not find <ilcp/cp.h> that is included in the first line of the code of the coloring problem example in cpoptimizer.


Could you help me out with that please? Should I add any other flags or is anything missing?





  • rdumeur
    136 Posts

    Re: linking CP Optimizer to Xcode in mac


    Dear Hossein,


    Please check that the include directories (-I) are correctly given to the compiler.

    Example makefiles provided in the distributions should be a good starting point (ls $INSTALLDIR/cpoptimizer/examples/*/*/makefile)

    I hope this helps.