[Clp] compiling and running clp

Stefan Vigerske stefan at math.hu-berlin.de
Thu Sep 19 11:01:59 EDT 2013


Hi,

On 09/19/2013 04:57 PM, Juan J. Rojas wrote:
>
> 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?

The examples come with a Makefile, so
   make DRIVER=minimum
should do fine.

Stefan


>
> Many thanks,
>
> Juan
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp
>



More information about the Clp mailing list