<div dir="ltr"><div><div><div><div><div><div>Hello to all.<br></div>I just installed FlopC++ in Linux (Ubuntu 14:04 64 bit if that matter) using prefix=/usr in configure.<br></div><div>Running &quot;make test&quot; seems to work without issues.<br></div><div><br></div>I am now trying to get a independent manual compilation of the transport.cpp example[1] but I end up with a serie of undefined references from ld.<br><br></div>The command I run to try to compile transport.cpp is:<br><pre>g++ -I /usr/include/coin transport.cpp -lCoinUtils -lOsi -lClp -lClpSolver -lOsiClp -lOsiCommonTests -lCbc -lCbcSolver -lCgl -lOsiCbc -lFlopCpp -o transport<br></pre>The output is:<br><span style="font-family:monospace,monospace">lobianco@lobianco-officeLaptopLatitude:~/temp/flop++$ g++ -I /usr/include/coin transport.cpp -lCoinUtils -lOsi -lClp -lClpSolver -lOsiClp -lOsiCommonTests -lCbc -lCbcSolver -lCgl -lOsiCbc -lFlopCpp -o transport<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpSimplex::deleteRim(int)&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpSimplex::setInfeasibilityCost(double)&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpSimplex::cleanup(int)&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpSimplex::loadProblem(ClpMatrixBase const&amp;, double const*, double const*, double const*, double const*, double const*, double const*)&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpPresolve::~ClpPresolve()&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `OsiSolverInterface::reducedCostFix(double, bool)&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpSimplex::checkSolutionInternal()&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpModel::times(double, double const*, double*) const&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpSimplex::checkPrimalSolution(double const*, double const*)&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpSolve::operator=(ClpSolve const&amp;)&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `OsiSolverInterface::getRowNames()&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `OsiRowCut::ub() const&#39;<br>[...]<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpNodeStuff::zap(int)&#39;<br>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libOsiClp.so: undefined reference to `ClpSimplex::resize(int, int)&#39;<br>collect2: error: ld returned 1 exit status</span><br><br></div>Also, I have installed on my system glpk. Is there any significant gain in using glpk vs OsiClp as backend solver engine ? If so, how should I change the compilation command and the c++ source in order to use glpk ?<br><br></div>Many thanks,<br></div>  Antonello Lobianco, Laboratoire d&#39;Economie Forestiére, Nancy<br clear="all"><div><div><div><div><div><div><div><div><br>[1] <a href="https://projects.coin-or.org/svn/FlopC++/stable/1.2/FlopCpp/examples/transport.cpp">https://projects.coin-or.org/svn/FlopC++/stable/1.2/FlopCpp/examples/transport.cpp</a><br></div><div><br><br>-- <br><div class="gmail_signature">Antonello Lobianco<br>Spedito da un indirizzo non presenziato - Sent from an unattended account<br></div>
</div></div></div></div></div></div></div></div></div>