<div dir="ltr"><div>It seems this list is OSI developers only, I am sorry, I will post it in coin-discuss.<br><br></div>Thanks!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 1:03 PM, Cristián Serpell <span dir="ltr">&lt;<a href="mailto:cristian@serpell.cl" target="_blank">cristian@serpell.cl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,<br><br></div><div>I have been trying to get Osi linked with CPLEX in my Ubuntu and failed...<br>
<br>I started with lazylpsolverlibs, following instructions in [1] and [2]. It didn&#39;t work with my version of CPLEX: 12.5.1. It seems this version is not compatible backwards. I opened an issue for this project: [3].<br>

<br></div><div>Then, I tried compiling Osi directly to use CPLEX library, without using lazylpsolverlibs (Note that include/ilcplex has the .h files):<br><br>./configure --with-cplex-incdir=&quot;/opt/ibm/ILOG/CPLEX_Studio1251/cplex/include/ilcplex&quot; --with-cplex-lib=/opt/ibm/ILOG/CPLEX_Studio1251/cplex/bin/x86-64_sles10_4.1/libcplex1251.so<br>

<br></div><div>make<br><br></div><div>make test<br><br></div><div>It fails, when linking libraries:<br><br>g++ -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long -DOSI_BUILD -o .libs/unitTest unitTest.o OsiTestSolver.o OsiTestSolverInterface.o OsiTestSolverInterfaceIO.o OsiTestSolverInterfaceTest.o OsiCpxSolverInterfaceTest.o /opt/ibm/ILOG/CPLEX_Studio1251/cplex/bin/x86-64_sles10_4.1/libcplex1251.so  ../src/OsiCommonTest/.libs/libOsiCommonTests.so ../src/OsiCpx/.libs/libOsiCpx.so ../src/Osi/.libs/libOsi.so /home/cserpell/Projects/RoLT/downloads/Osi/Osi-0.106.2/CoinUtils/src/.libs/libCoinUtils.so -lbz2 -lz -llapack -lblas -lm -Wl,--rpath -Wl,/home/cserpell/Projects/RoLT/downloads/Osi/Osi-0.106.2/lib<br>

../src/OsiCpx/.libs/libOsiCpx.so: undefined reference to `CPXgetobj&#39;<br>../src/OsiCpx/.libs/libOsiCpx.so: undefined reference to `CPXcopymipstart&#39;<br>...<br>../src/OsiCpx/.libs/libOsiCpx.so: undefined reference to `CPXgetsense&#39;<br>

collect2: error: ld returned 1 exit status<br>make[2]: *** [unitTest] Error 1<br>make[1]: *** [test] Error 2<br>make: *** [test] Error 2<br><br></div><div>I imagine this has to do with backwards compatibility. So my question is: Is someone successfully using this version of CPLEX via Osi?<br>

<br>My problem is when compiling the test, not while running, like [4].<br><br>[1] <a href="https://code.google.com/p/lazylpsolverlibs/wiki/HowToSetup" target="_blank">https://code.google.com/p/lazylpsolverlibs/wiki/HowToSetup</a><br>
[2] <a href="http://list.coin-or.org/pipermail/osi/2012-July/000514.html" target="_blank">http://list.coin-or.org/pipermail/osi/2012-July/000514.html</a><br>
[3] <a href="https://code.google.com/p/lazylpsolverlibs/issues/detail?id=8" target="_blank">https://code.google.com/p/lazylpsolverlibs/issues/detail?id=8</a><br>[4] <a href="https://projects.coin-or.org/Osi/ticket/102" target="_blank">https://projects.coin-or.org/Osi/ticket/102</a><br>

<br>Thanks a lot for your help,<br></div><div>Cristián<br></div></div>
</blockquote></div><br></div>