Paul Kelly wrote:

> i.atcorr uses the isnan() function which seems to cause compilation to 
> fail on Windows:
> 
> sh-2.04$ make
> c++ -I/c/grass/grass7/dist.i686-pc-mingw32/include -I/c/grass/extra/include 
> -O2 -s -I/c/grass/extra/include  -DPACKAGE=\""grassmods"\"   
> -I/c/grass/grass7/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/main.o 
> -c main.cpp
> main.cpp: In function `void process_raster(int, InputMask, ScaleRange, int, 
> int, int, bool, ScaleRange, bool)':
> main.cpp:309: error: `isnan' was not declared in this scope
> make: *** [OBJ.i686-pc-mingw32/main.o] Error 1
> sh-2.04$
> 
> main.cpp includes <cmath>; I wonder if the problem is due to the fact 
> isnan() is a C99 function? Should it be changed?

Yes. This came up about a month ago:

        http://lists.osgeo.org/pipermail/grass-dev/2008-September/039910.html

I thought it had been fixed already.

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to