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

Markus Neteler neteler at itc.it
Wed Nov 3 02:45:11 EST 2004


(cc Andrew Danner from Duke)

On Wed, Nov 03, 2004 at 02:23:41PM +1300, Hamish wrote:
> > > > 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:
> 
> http://grass.itc.it/pipermail/grass5/2004-January/013555.html
> http://grass.itc.it/pipermail/grass5/2004-January/013566.html
> 
> but that leads to other headaches with non-gcc C++ compilers.. (anyone?)

At least it would be fixed for the 'gcc' family. Once someone
complains we can add further #if ... magic.
 
> 
> fairly obvious example from this history:
> http://freegis.org/cgi-bin/viewcvs.cgi/grass/src.contrib/DUKE/r.terraflow/common.cc
> 
> Hamish

Markus




More information about the grass-dev mailing list