[Clp] compiling and running clp

Juan J. Rojas jjrc3 at gatech.edu
Thu Sep 19 10:57:38 EDT 2013


Hello all,


I have successfully installed  Clp from the coin-or web page using "svn" in my redhat linux 64 bit machine. However, when I try to compile  the example called: minimum.cpp using g++ I get the following errors:

 undefined reference to `ClpSimplex::ClpSimplex(bool)'
 undefined reference to `ClpSimplex::readMps(char const*, bool, bool)'
 undefined reference to `ClpSimplex::readMps(char const*, bool, bool)'
 undefined reference to `ClpSimplex::primal(int, int)'
 undefined reference to `ClpSimplex::~ClpSimplex()'
 undefined reference to `ClpSimplex::~ClpSimplex()'

The way I am trying to compile is g++ clpSolver.cpp -L/../coin-Clp/lib/libClp.so -o clpSolver. I think, I am missing some required flags(that include important libraries) when I compile.

Do you have any ideas about how can I fix this errors?

Many thanks,

Juan 


More information about the Clp mailing list