[Coin-discuss] Sbb make

Matthew Saltzman mjs at ces.clemson.edu
Mon Jan 20 23:49:36 EST 2003


On Mon, 20 Jan 2003, Laszlo Ladanyi wrote:

> Just put std::max there, that should fix it. What platform are you compiling
> on and what version of what compiler are you using? gcc-2.95.3 has no problem
> compiling the code because it assumes that everything is in std unless
> specified otherwise.
>
> The other option is to include CoinHelperFunctions.hpp and use CoinMax. I'd be
> surprised if this would be needed; we have introduced it back in the days
> of egcs-1.1.2, when one could not count on having max properly defined and
> even if it was defined it was in a different header on every platform...

Of course, MS VC++6 still doesn't conform, so for that platform, the
choice seems to be either CoinMax or compiler-specific ifdefs.

This looks like Solaris something, but I can't tell if it's CC or g++.
Writing std::max should work for either of those, I think.

>
> --Laci
>
> On Mon, 20 Jan 2003, [iso-8859-1] Gabrielle  A. Grün wrote:
>
> >
> > Hi All,
> >
> > I have trouble in compiling or making  the Sbb. The following is a partial
> > listing of the make:
> >
> > Compiling SbbHeuristic.cpp
> > SbbHeuristic.cpp: In member function `virtual int
> >    SbbRounding::solution(double&)':
> > SbbHeuristic.cpp:336: `max' undeclared (first use this function)
> > SbbHeuristic.cpp:336: (Each undeclared identifier is reported only once for
> >    each function it appears in.)
> > make[2]: *** [SunOS-g/SbbHeuristic.o] Error 1
> > make[2]: Leaving directory `/cs/mitacs2/grun/sbb'
> > make[1]: *** [install] Error 2
> > make[1]: Leaving directory `/cs/mitacs2/grun/sbb'
> >
> > The max function remains undefined even when I inserted my own definition.
> > Any suggestions?
> >
> >
> > Gabrielle A. Grün, PhD student
> > School of Computing Science
> > Simon Fraser University
> > Burnaby, B.C.
> > V5A 1S6 Canada
> > http://www.cs.sfu.ca/~grun/
> > http://members.home.net/grun/index
> >
> > _______________________________________________
> > Coin-discuss mailing list
> > Coin-discuss at www-124.ibm.com
> > http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
> >
>
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at www-124.ibm.com
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
>

-- 
		Matthew Saltzman

Clemson University Math Sciences
mjs at clemson.edu
http://www.math.clemson.edu/~mjs



More information about the Coin-discuss mailing list