Hello,<div><br></div><div>I am trying to write my Bechelorthesis using lemon with cplex, therefore I have to use a Mip.</div><div><br></div><div>First I started using GLPK on my own PC, that worked fine. My professor said, that it would be better to use Cplex on the PC's in the university. </div>
<div><br></div><div>Lemon should be installed with Cplex support, and I compiled my code with:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font size="1">g++ -g -O2 -O3 -c Main.cpp -I/usr/local/lemon/lemon-1.2.3/include -lemon -I/usr/local/ilog/cplex/latest-version/include<br></font><font size="1">g++ -g -O2 -O3 -o Main Main.o -L/usr/local/lemon/lemon-1.2.3/lib -lemon -L/usr/local/ilog/cplex/latest-version/lib/x86-64_sles10_4.1/static_pic -lilocplex -lcplex -L/usr/local/ilog/concert/latest-version/lib/x86-64_sles10_4.1/static_pic -lconcert</font></blockquote>
</div><div><br></div><div>The compiler works fine, but the Linker return some of these errors:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font size="1"> undefined reference to `lemon::CplexMip::CplexMip()'</font></blockquote><div><br></div><div>Does someone know what I did wrong? Did I forget some Linker libraries?</div><div>How can I test if Cplex is running inside of lemon (without root)?</div>
<div><br></div><div><br></div><div>I used Lemon 1.2.3, Cplex 124</div><div><br></div><div>relevant Includes:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font size="1">#include <lemon/cplex.h></font></blockquote><div><br></div><div>and not <lemon/lp.h> </div><div><br></div><div>Typedefs I made:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font size="1">typedef CplexMip Mip;<br>typedef CplexMip Lp;</font></blockquote><div> </div></div><div><br></div><div>I hope that were all important informations.</div><div><br></div><div><br></div><div>Thank you</div><div>
<br></div><div>Andreas</div>