Hi Csaba,
Thanks for replying.
I've looked at what you said to Loic, and it seems to be a similar problem,
though I'm still not sure how to fix it...
The extract from OSG math that fails:
#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
Since all the functions have the same name, I'm not sure which 'if' section
it is failing in - but I'm assuming that as a cygwin user, I want it to get
into the final else, since it is _CYGWIN_ and not _APPLE_.
As you suggest, I've checked that I have got ieeefp.h (in
cygwin/usr/include), but I'm not sure where __CYGWIN__ should be defined???
(also, ieeefp.h seems to do lots of things to isnan functions, so I'm not
completely clear on which function it is exporting!)
Thanks again,
Loz
>
> When I try and install SimGear, its all seems to go fine, until I get an
> error relating to the isnan function - that it complains is un-declared. I
> realise this means somewhere the header/define file that contains isnan
> hasn't been recognised, but I've not used Cygwin before, so I've no idea
> where this isnan function is stored, or why it would not be defined
> properly?
Seems Loic Laronze has run into the same problem. I have given him a
hint, but don't know how he finally got it to compile. (See:
http://www.mail-archive.com/[email protected]/msg09818.
html)
Maybe ask him.
Greets,
Csaba
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel