mutiple definition of isnan when OSG code is enabled
Created by: subhacom
OSG headers also comes with definitions of isnan
and it is in conflict with standard isnan
call. Call to isval
and other such functions would also be affected.
from /build/buildd/moose-3.0.1/moose_3.0.1/python/moogli/scenegraph.cpp:3:
/usr/include/osg/Math: In function 'bool osg::isNaN(double)':
/usr/include/osg/Math:216:53: error: call of overloaded 'isnan(double&)' is ambiguous
/usr/include/osg/Math:216:53: note: candidates are:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:236:1: note: int isnan(double)
/usr/include/c++/4.6/cmath:552:3: note: bool std::isnan(long double)
/usr/include/c++/4.6/cmath:548:3: note: bool std::isnan(double)
/usr/include/c++/4.6/cmath:544:3: note: bool std::isnan(float)
make[6]: *** [CMakeFiles/_moogli.dir/scenegraph.cpp.o] Error 1
Reported by: dilawar