[GRASS-dev] isnan() in i.atcorr
Paul Kelly
paul-grass at stjohnspoint.co.uk
Mon Oct 6 13:37:19 EDT 2008
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?
Paul
More information about the grass-dev
mailing list