• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[OT] calling isnan
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

  • Follow-Ups:
    • Re: [OT] calling isnan
      • From: Chris Espinosa <email@hidden>
    • Re: [OT] calling isnan
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Distributed builds on headless XServe
  • Next by Date: Reorder subviews from InterfaceBuilder?
  • Previous by thread: Re: .dylib project
  • Next by thread: Re: [OT] calling isnan
  • Index(es):
    • Date
    • Thread