[GRASS5] 5.7/Mdk10.1: r.terraflow compilation problem

Hamish hamish_nospam at yahoo.com
Tue Nov 2 20:23:41 EST 2004

> > > we just compiled GRASS 5.7 on Mandrake 10.1 successfully
> > > exept for r.terraflow: The error below doesn't tell me much,
> > > does anyone have a suggestion?
> > 
> > > ./IOStream/include/pqheap.h:218: error: `MMmanager' undeclared
> > > (first use this function)
> > 
> > I suspect that this should be MM_manager, which is declared in mm.h.
> I have submitted patches from the authors to CVS. Now our guest having
> Mandrake 10.1/gcc 3.41 is no longer here, so I cannot confirm if it
> works. Still works for gcc3.2 :-)

It will now be broken for gcc <= 2.95. Unfortunately gcc 2.95 includes
most of the new (sans .h) headers but not all. In particular <ostream>
is missing. gcc 3.3 would complain but still compile with <ostream.h>.
I don't know if gcc 3.4 maintains backwards compatability. If it
doesn't, we'd need to do something like this:


but that leads to other headaches with non-gcc C++ compilers.. (anyone?)

fairly obvious example from this history:


More information about the grass-dev mailing list