[Cbc] Compile-Fix CBC/CoinUtils

Christoph Cullmann cullmann at absint.com
Sat Jan 31 12:01:37 EST 2015


Hi,

thanks. An other issue is the wrong %x for a pointer instead of %p in cbc here:

CbcCountRowCut.cpp: In member function 'int CbcRowCuts::addCutIfNotDuplicateWhenGreedy(const OsiRowCut&, int)':
CbcCountRowCut.cpp:712:50: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'CbcRowCuts*' [-Werror=format=]
       cut.row().getNumElements(),this,numberCuts_);

Will cbc 2.9 then pull in the fixed variant of CoinUtils?

Greetings
Christoph

----- Ursprüngliche Mail -----
> This is fixed in trunk and stable/2.10. I'm going to make new releases
> after fixing another small bug that I'm working on.
> 
> Cheers,
> 
> Ted
> 
> On Sat, Jan 31, 2015 at 11:40 AM, Christoph Cullmann <cullmann at absint.com>
> wrote:
> 
> > Hi,
> >
> > could somebody with commit rights patch the line:
> >
> > CoinLpIO.cpp:2364:72: error: too many arguments for format
> > [-Werror=format-extra-args]
> >         sprintf(printBuffer,"### CoinLpIO::readLp(): bad SOS item", buff);
> >
> > Just removing the buff or adding it to the output via a %s should do the
> > trick.
> >
> > Greetings
> > Christoph
> >
> > --
> > ----------------------------- Dr.-Ing. Christoph Cullmann ---------
> > AbsInt Angewandte Informatik GmbH      Email: cullmann at AbsInt.com
> > Science Park 1                         Tel:   +49-681-38360-22
> > 66123 Saarbrücken                      Fax:   +49-681-38360-20
> > GERMANY                                WWW:   http://www.AbsInt.com
> > --------------------------------------------------------------------
> > Geschäftsführung: Dr.-Ing. Christian Ferdinand
> > Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
> >
> > _______________________________________________
> > Cbc mailing list
> > Cbc at list.coin-or.org
> > http://list.coin-or.org/mailman/listinfo/cbc
> >
> 
> 
> 
> --
> Dr. Ted Ralphs
> Professor, Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted
> 

-- 
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH      Email: cullmann at AbsInt.com
Science Park 1                         Tel:   +49-681-38360-22
66123 Saarbrücken                      Fax:   +49-681-38360-20
GERMANY                                WWW:   http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234



More information about the Cbc mailing list