Hi Gianluca,

An old release like OSG-3.0.1 will have worked with the OS's and dev
tools available at the time of release but as the dev environment
changes things like this can break.

I am not familiar with RedHat so can't comment of the specifics.
There is chance that later versions of the OSG address this issue, so
you could look at the Math header from OSG-3.2.x or OSG-svn/trunk to
see if there are changes that might help.

Could you simply update to a more modern version of the OSG?

Robert.

On 30 April 2015 at 10:24, Gianluca Natale <[email protected]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to