[osg-users] compilation error on Linux
Gianluca Natale
natale at europe.altair.com
Thu Apr 30 02:24:04 PDT 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150430/ca896913/attachment-0002.htm>
More information about the osg-users
mailing list