• 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
Re: Trying to access a function that was in fp.h - nextafterd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to access a function that was in fp.h - nextafterd


  • Subject: Re: Trying to access a function that was in fp.h - nextafterd
  • From: Peter Michelsen <email@hidden>
  • Date: Mon, 31 Oct 2005 14:51:02 +0000

Thanks, for the help. It now works. Changed nextafterd to nextafter .

As someone who has to write documentation for my programs, could you pass a note onto the Apple documentation team that the function has changed.

http://developer.apple.com/documentation/Carbon/Reference/ Mathematical_al_Utilities/math_logic_utils_ref/ chapter_1.2_section_10.html

Cheers Peter.

On 31 Oct 2005, at 13:35, Howard Hinnant wrote:

On Oct 31, 2005, at 7:52 AM, Peter Michelsen wrote:


Hi,

Working on some code, that uses the function nextafterd that was part of fp.h on codewarrior.

I am now getting a compiler error "not declared in this scope" on this function in XCode 2.1 on a G5.

After trying many different includes types, then reading all the documentation, sample codes and googling, still no luck.

The most strange part is the function nextafterf works.

So has anyone else come across this problem?
Is it a problem with GCC 4 and doubles?

Any ideas,
Cheers Peter.


Hi Peter,

Try nextafter instead.  The (C99) standard overloads are:

double nextafter(double x, double y);
float nextafterf(float x, float y);
long double nextafterl(long double x, long double y);

-Howard



_______________________________________________ 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
References: 
 >Trying to access a function that was in fp.h - nextafterd (From: Peter Michelsen <email@hidden>)

  • Prev by Date: cross-project references
  • Next by Date: Re: distributed build limited to 6 CPUs
  • Previous by thread: Re: Trying to access a function that was in fp.h - nextafterd
  • Next by thread: cross-project references
  • Index(es):
    • Date
    • Thread