I have been getting this error when compiling simgear yesterday and this morning:
'error: ‘isnan’ was not declared in this scope'
- Code (): Select all
In file included from /home/mifi/Software/Sources/fgfs53/next/simgear/simgear/sound/soundmgr_openal.cxx:43:0:
/home/mifi/Software/Sources/fgfs53/next/simgear/simgear/sound/soundmgr_openal_private.hxx: In function ‘bool isNaN(float*)’:
/home/mifi/Software/Sources/fgfs53/next/simgear/simgear/sound/soundmgr_openal_private.hxx:77:22: error: ‘isnan’ was not declared in this scope
return (isnan(v[0]) || isnan(v[1]) || isnan(v[2]));
^
/home/mifi/Software/Sources/fgfs53/next/simgear/simgear/sound/soundmgr_openal_private.hxx:77:22: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /home/mifi/Software/Sources/fgfs53/next/simgear/simgear/sound/soundmgr_openal.cxx:35:
/usr/include/c++/5/cmath:641:5: note: ‘std::isnan’
isnan(_Tp __x)
^
simgear/CMakeFiles/SimGearScene.dir/build.make:3062: recipe for target 'simgear/CMakeFiles/SimGearScene.dir/sound/soundmgr_openal.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/sound/soundmgr_openal.cxx.o] Error 1
CMakeFiles/Makefile2:1158: recipe for target 'simgear/CMakeFiles/SimGearScene.dir/all' failed
make[1]: *** [simgear/CMakeFiles/SimGearScene.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
I am compiling with download_and_compile.sh on Ubuntu 16.04LTS.
I scanned the forum to see if this had been noticed by others, but other than a few old posts, I did not find recent references to 'isnan'.
Is there something wrong in my environment?
Does anybody else notice this?
cheers
Michiel