Hi all.
I'm building my application based upon OSG 3.0.1, on a Linux Red hat 5.9 
(DevTool 1.1, gcc 4.7.2), and I have this error:


/users/fdmbld/projects/InspRegular/hw/unity/third_party/OSG3.0.1/linux64/include/osg/Math:
 In function 'bool osg::isNaN(double)':

/users/fdmbld/projects/InspRegular/hw/unity/third_party/OSG3.0.1/linux64/include/osg/Math:216:53:
 error: call of overloaded 'isnan(double&)' is ambiguous

/users/fdmbld/projects/InspRegular/hw/unity/third_party/OSG3.0.1/linux64/include/osg/Math:216:53:
 note: candidates are:

In file included from /usr/include/math.h:71:0,

                 from 
/opt/rh/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/cmath:46,

                 from 
/opt/rh/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/random:38,

                 from 
/opt/rh/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/bits/stl_algo.h:67,
                 from 
/opt/rh/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/algorithm:63,

It appears that two system include files, mathcalls.h (default OS) and cmath 
(from RH DevToolKit) both have definitions of functions "isnan", and OSG's Math 
header uses it in an ambiguous manner.
Any idea about how to fix this?

Thanks

Gianluca Natale

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to