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

Malcolm Blue mblue at nb.sympatico.ca
Mon Sep 9 11:56:13 EDT 2002


Glynn,

> 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.

Thanks,

Malcolm


> In any case:
> 
> 1. We should probably pick another name for the function in 
> d.zoom/cmd/set.c. "round(x)" is normally understood as 
> meaning the same thing as "floor(x+0.5)".
> 
> 2. We should consider whether configure should attempt to 
> detect the existence of a round() function, and define 
> HAVE_ROUND accordingly; imagery/i.pca/cmd/main.c could then 
> conditionalise its local definition.
> 
> -- 
> Glynn Clements <glynn.clements at virgin.net>
> 
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
> 




More information about the grass-windows mailing list