[GRASS5] Re: updated r.terraflow compile error
Hamish
hamish_nospam at yahoo.com
Tue Jan 20 18:00:25 EST 2004
> There should be a variable that tells the gcc version. Anybody knows
> how it's called? I could add something like
> #if version < 3.2.2
> #include <ostream.h>
> #else
> #include <ostream>
Yes, but what about compiling on a something that isn't gcc?
Anyone know what Solaris/SGI/Cygwin/MacOSX has?
?,
Hamish
> >>>> the updated r.terraflow causes the automated Linux compilation
> >>>> of 5.7 to fail:
...
> >> /usr/include/g++-3/iostream
> >> /usr/include/g++-3/iostream.h
> >> /usr/include/g++-3/ostream.h
> >
> > ^^^^^^^^^ and there's the problem.
> >
> > gcc 2.96 (g++) includes both a current and backwards compatible version
> > of iostream (and others), but it doesn't include a current "ostream".
> >
> > So there's only ostream.h on gcc 2.96, and the compile fails. I guess
> > we are stuck with setting it to <ostream.h> and seeing "depreciated"
> > messages.
More information about the grass-dev
mailing list