• 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: Wesley Smith <email@hidden>
  • Date: Sat, 21 May 2005 10:20:26 -0700

>
> It's declared in the std:: namespace.

True!  I tried:

using namespace std;

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

I still get:
/Users/na/LTItest/main.cpp: In function `int main()':
/Users/na/LTItest/main.cpp:7: error: `isnan' undeclared (first use
this function)
/Users/na/LTItest/main.cpp:7: error: (Each undeclared identifier is
reported only once for each function it appears in.)

I am still not getting something right.  Might there be any other suggestions?

thanks,
wes




>
> #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

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

  • Prev by Date: Re: How does the SDK selection affect my compiler settings?
  • Next by Date: Re: Compile errors aren't so good
  • Previous by thread: Re: How does the SDK selection affect my compiler settings?
  • Next by thread: 10.3.9, Xcode 1.5 Build ResourceManager build phase issue
  • Index(es):
    • Date
    • Thread