• 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: How does the SDK selection affect my compiler settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does the SDK selection affect my compiler settings?


  • Subject: Re: How does the SDK selection affect my compiler settings?
  • From: Chris Espinosa <email@hidden>
  • Date: Sat, 21 May 2005 09:52:38 -0700


On May 21, 2005, at 9:20 AM, Wesley Smith wrote:

I'm trying to compile a test program to see about the isnan function

on my system (apple darwin w/ gcc version 3.3 20030304 (Apple

Computer, Inc. build 1671).  Here's the code:


#include <cmath>

int main()

{

 float x=sqrt(-1);

 return isnan(x);

}


Here's the output:


gcc -o main main.cpp

main.cpp: In function `int main()':

main.cpp:5: error: `isnan' undeclared (first use this function)

main.cpp:5: error: (Each undeclared identifier is reported only once for each

  function it appears in.)



It's declared in the std:: namespace.

#include <cmath>
int main()
{
 float x=sqrt(-1);
 return std::isnan(x);
}



 _______________________________________________
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: How does the SDK selection affect my compiler settings?
      • From: Wesley Smith <email@hidden>
References: 
 >Re: How does the SDK selection affect my compiler settings? (From: Chris Espinosa <email@hidden>)
 >Re: How does the SDK selection affect my compiler settings? (From: Wesley Smith <email@hidden>)

  • Prev by Date: Re: How does the SDK selection affect my compiler settings?
  • Next by Date: Re: How does the SDK selection affect my compiler settings?
  • Previous by thread: Re: How does the SDK selection affect my compiler settings?
  • Next by thread: Re: How does the SDK selection affect my compiler settings?
  • Index(es):
    • Date
    • Thread