Bill Galbraith writes:
> 
> I got an error while compile OSG out of cvs with Cygwin. I 
> went ahead and did a 'make -k', to let it keep going, to see 
> what other errors there are.
> The 'isnan' error showed up a numebr of times. That looked like it.
> 
>       ../../../include/osg/Math: In function `bool osg::isNaN(float)':
>       ../../../include/osg/Math:200: error: `isnan' 
> undeclared (first use this function)
> 
> Ideas on fixing this?  I reinstalled the math package from 
> the Cygwin installation, thinking that maybe I didn't install 
> everything. That wasn't it. I read in the ChangeLog something 
> about cmath. I tried to include that in Math, but that didn't 
> help either.
> 
> Ideas on how to fix THIS problem?

Maybe try changing line osg/Math line 195 to

    #if defined(__APPLE__) || defined(__CYGWIN__)

FYI I am traveling and don't have access to a Cygwin installation
to test this

Or this might be better
        inline bool isNaN(float v) { return ::isnan(v); }
        inline bool isNaN(double v) { return ::isnan(v); }

If this doesn't work I suggest asking on the Cygwin list

Norman

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to