[GRASS5] RE: [winGRASS] GRASS 5.0.0 released!

Glynn Clements glynn.clements at virgin.net
Mon Sep 9 12:11:50 EDT 2002


Malcolm Blue wrote:

> > Hmm. GNU libc's math.h also declares "round", but only if 
> > __USE_ISOC9X is defined. I wonder if Cygwin's gcc defaults to 
> > C9X rather than C89.
> >
> 
> It appears to. Round is declared after:
> 
> #ifndef __STRICT_ANSI__
> 
> /* ISO C99 types and macros. */
> 
> > IIRC, the most recent versions of gcc (3.x, maybe some later 
> > 2.9x) have an option to select the dialect (C89/C9X), so it 
> > may be possible to get around this problem by setting CFLAGS 
> > prior to running "configure".
> > 
> 
> You are right, I could have defined __STRICT_ANSI__ to avoid this error.

Or used "gcc -ansi ...", which causes that macro to be defined. 
However, I suspect that either approach would be a bad idea; much of
GRASS is not ANSI conformant.

That does at least tell me that the code has to be changed; it can't
be solved through compiler switches.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-windows mailing list