[Coin-lpsolver] problem compiling ClpCholeskyUfl.cpp witm amd

Kish Shen kish.shen at crosscoreop.com
Tue May 16 17:53:58 EDT 2006


Hi,

I have obtained from CVS today (16 May 2006) a new copy of the COIN-OR system.
I tried to compile Clp with COIN_ufl_ordering defined, after downloading AMD 
and compiling it.

The build fails when compiling ClpCholeskyUfl.cpp:

  
Compiling ClpCholeskyUfl.cpp
ClpCholeskyUfl.cpp: In destructor `virtual ClpCholeskyUfl::~ClpCholeskyUfl()':
ClpCholeskyUfl.cpp:45: error: `L_' undeclared (first use this function)
ClpCholeskyUfl.cpp:45: error: (Each undeclared identifier is reported only 
once 
   for each function it appears in.)
ClpCholeskyUfl.cpp:45: error: `c_' undeclared (first use this function)
ClpCholeskyUfl.cpp:45: error: `cholmod_free_factor' undeclared (first use this 
   function)
ClpCholeskyUfl.cpp:46: error: `cholmod_finish' undeclared (first use this 
   function)
make[4]: *** [Linux-O1/ClpCholeskyUfl.o] Error 1

The problem is with the code:

ClpCholeskyUfl::~ClpCholeskyUfl ()
{
  cholmod_free_factor (&L_, &c_) ;
  cholmod_finish (&c_) ;
}

Should the code be inside a #ifdef CLP_USE_CHOLMOD macro, like for the 
constructor? Here is the constructor code:

ClpCholeskyUfl::ClpCholeskyUfl (int denseThreshold) 
  : ClpCholeskyBase(denseThreshold)
{
  type_=14;
#ifdef CLP_USE_CHOLMOD
  L_= NULL;
  cholmod_start (&c_) ;
#endif
}



--Kish Shen



More information about the Clp mailing list