NM. Just change the isnan(v)'s to __isnanf(v) and __isnand(v) and it works. :)

- Steve

On Mon, 11 Dec 2006, Steve Webb wrote:

Date: Mon, 11 Dec 2006 15:05:35 -0700 (MST)
From: Steve Webb <[EMAIL PROTECTED]>
Reply-To: osg users <[email protected]>
To: [email protected]
Subject: [osg-users] isNaN() breaking compile under Cygwin

Hello.

Using the latest download with the 3.3.3 gcc under cygwin (just installed cygwin and the latest 1.2 stable zipfile of osg: Producer and Inventor compiled fine, but compiling OSG, I get:

Entering directory src
make[1]: Entering directory `/home/Steven/OSG_OP_OT-1.2/OpenSceneGraph/src'
Entering directory osg
make[2]: Entering directory `/home/Steven/OSG_OP_OT-1.2/OpenSceneGraph/src/osg' make[3]: Entering directory `/home/Steven/OSG_OP_OT-1.2/OpenSceneGraph/src/osg/CYGWIN32.Opt' c++ -O2 -DWIN32 -DNOMINMAX -W -Wall -mnop-fun-dllimport -DOSG_LIBRARY -I../../../include -I/usr/local/OpenThreads/include -I/usr/local/Producer/include -c ../
AnimationPath.cpp
In file included from ../../../include/osg/Vec2f:17,
                from ../../../include/osg/Vec2d:17,
                from ../../../include/osg/Vec3d:17,
                from ../../../include/osg/Matrixf:18,
                from ../../../include/osg/AnimationPath:21,
                from ../AnimationPath.cpp:13:
../../../include/osg/Math: In function `bool osg::isNaN(float)':
../../../include/osg/Math:200: error: `isnan' undeclared (first use this function) ../../../include/osg/Math:200: error: (Each undeclared identifier is reported only once for each function it appears in.)
../../../include/osg/Math: In function `bool osg::isNaN(double)':
../../../include/osg/Math:201: error: `isnan' undeclared (first use this function)
make[3]: *** [AnimationPath.o] Error 1
make[3]: Leaving directory `/home/Steven/OSG_OP_OT-1.2/OpenSceneGraph/src/osg/CYGWIN32.Opt'
make[2]: *** [cygosg.dll.opt] Error 2
make[2]: Leaving directory `/home/Steven/OSG_OP_OT-1.2/OpenSceneGraph/src/osg'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/home/Steven/OSG_OP_OT-1.2/OpenSceneGraph/src'
make: *** [default] Error 1

In Math:200 I see:

inline bool isNan(float v) { return isnan(v); }

I guess that Cygwin doesn't like this, or perhaps I need to install more cygwin stuff?

- Steve



--
EMAIL: (h) [EMAIL PROTECTED]  WEB: http://badcheese.com/~steve

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

Reply via email to