> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Norman Vine > Sent: Thursday, February 15, 2007 2:11 PM > To: 'osg users' > Subject: RE: [osg-users] Compile error in OSG with Cygwin > > 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); } > > Norman
Sorry, but this didn't work for me. I even went back to the 1.1 release tar ball and tried to compile that, with and without these changes. Nothing I did seem to make any different. If anyone figures this out, please drop me a line. Thanks, Bill _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
