> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Brian Keener
> Sent: Thursday, February 15, 2007 8:20 PM
> To: osg users
> Subject: Re: [osg-users] Compile error in OSG with Cygwin
> 
> Bill Galbraith wrote:
> > The 'isnan' error showed up a numebr of times. That looked like it.
> 
> As Norman pointed out include/osg/Math.
> 
> Compare the beginning lines to these lines (the first and 
> last lines (inline and template are untouched and not sure of 
> the rest):
> 
> inline double round(double v) { return 
> v>=0.0?floor(v+0.5):ceil(v-0.5); }
> 
> #if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MWERKS__)
>     inline bool isNaN(float v) { return _isnan(v)!=0; }
>     inline bool isNaN(double v) { return _isnan(v)!=0; } #else
>     #if defined(__APPLE__)
>         inline bool isNaN(float v) { return std::isnan(v); }
>         inline bool isNaN(double v) { return std::isnan(v); }
>     #else
>         // Need to use to std::isnan to avoid undef problem 
> from <cmath>
>         inline bool isNaN(float v) { return isnan(v); }
>         inline bool isNaN(double v) { return isnan(v); }
>     #endif
> #endif
> 
> 
> /** compute the volume of a tetrahedron. */ template<typename T>
> 
> This is the way I modified mine for Cygwin
> 
> bk



Well, I was getting sick of this error, so I went to other measures. Against
the suggestion of the installation instructions, I updated to gcc 3.4.4, and
got through this compile error. I'm so confused as to what I've done and
what is working and what isn't, but once I get through it all, I'll try it
again, and take more notes, and hopefully come up with a 'cold-start'
procedure for the next guy.

Thanks to everyone that offered suggestions.

Bill

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

Reply via email to