[Coin-lpsolver] Compiling Clp with gcc 2.95.3
Ted Ralphs
tkralphs at lehigh.edu
Fri Feb 18 13:31:34 EST 2005
John,
Clp currently won't compile with gcc 2.95.3 because of the following
call on line 1192 of ClpSimplexDual.cpp:
matrix_->dualExpanded(this,arrayVector,false,0);
The prototype for this method in ClpMatrixBase.hpp is:
virtual void dualExpanded(ClpSimplex *, CoinIndexedVector *,
double *, int);
so the third argument is supposed to be of type double *. gcc 2.95.3
chokes on this because it is looking for a matching function where the
third argument is of type bool. The third argument to this method is
ignored in the function implementation anyway, so changing the third
argument from "false" to "0" seems to fix things. Strangely, later
version of gcc don't seem to care about this mismatch.
Cheers,
Ted
--
Dr. Ted Ralphs
Assistant Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2
More information about the Clp
mailing list