[GRASS5] 5.7: r.terraflow and gcc 2.96 fails
hamish_nospam at yahoo.com
Thu Nov 18 17:23:13 EST 2004
> > > /hardmnt/grass0/neteler/grass51binarybuild/grass51/raster/r.terra
> > > flow/
> > > -DELEV_FLOAT main.cc -o OBJ.i686-pc-linux-gnu/FLOAT/main.o In file
> > > included from IOStream/include/ami.h:61,
> > > from common.h:49,
> > > from main.cc:59:
> > > IOStream/include/empq_impl.h:44:19: ostream: No such file or
> > > directory In file included from plateau.h:50,
> > > from water.h:51,
> > > from fill.h:46,
> > > from main.cc:60:
> > > direction.h:46:19: ostream: No such file or directory
> > > make: *** [OBJ.i686-pc-linux-gnu/FLOAT/main.o] Error 1
> > gcc 2.96 is missing the <ostream> include header. <ostream.h> is
> > still available in gcc 3.3 (not sure about 3.4?) for backwards
> > compatibility.
> > Therefore we have to use #include <ostream.h> and live with the
> > compiler warning that ostream.h is depreciated.
> > see also
> > http://grass.itc.it/pipermail/grass5/2004-November/015840.html
> I have submitted the change proposed in above email reference
> to 5.7-CVS. We'll see with non-gcc compilers then.
> No (more) problems with:
> gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.1)
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
all the headers without .h should be conditionalized really. THEN we'll
see with non-gcc.
More information about the grass-dev