[OT] calling isnan
[OT] calling isnan
- Subject: [OT] calling isnan
- From: Fred Bacon <email@hidden>
- Date: Fri, 18 Feb 2005 11:51:03 -0500
- Organization: Rigid Rotor
I've run into a strange problem, and could use some advice. I have a
C++ library that I'm porting from linux to Mac OS X. One of the classes
validates that a floating point number meets certain criteria, i.e. it
must be in the correct value range for the object. The class makes use
of the function isnan as part of the validation. On Mac OS X, this is a
macro defined in /usr/include/architecture/ppc/math.h. You get this
header by simply including math.h in your file.
However, when I compile the library, the linker says that this function
is undefined. I've tried including <architecture/ppc/math.h> directly
and still it doesn't work. I've gone over the include file to see if
something special needs to be defined or undefined to get the macro. I
can't find anything. I tried using namespace std. I've changed the
order of includes in case something else was undefing it.
I had to resort to copying the macro definition from math.h and putting
it into my own header wrapped with an #ifdef (__APPLE__) ... #endif.
Does anyone know what could cause this?
--
=============================================================================
Fred Bacon email: email@hidden
Aerodyne Research, Inc. http://www.aerodyne.com
45 Manning Rd Phone: (978) 663-9500 ext 273
Billerica, MA 01821-3976 FAX: (978) 663-4918
=============================================================================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden