Re: std::log10() problem
Re: std::log10() problem
- Subject: Re: std::log10() problem
- From: "Clark Cox" <email@hidden>
- Date: Wed, 29 Mar 2006 16:14:51 -0500
On 3/29/06, Roni Music <email@hidden> wrote:
>
> ----- Original Message -----
> From: "Clark Cox" <email@hidden>
> To: "Rolf Nilsson" <email@hidden>
> Cc: <email@hidden>
> Sent: Wednesday, March 29, 2006 6:12 PM
> Subject: Re: std::log10() problem
>
>
> > On 3/29/06, Rolf Nilsson <email@hidden> wrote:
> >> Hi,
> >>
> >> Why does this fail on OS X10.2.8 (app crashes at startup, crash log
> >> below)
> >>
> >> float fVal = std::log(float(8.0));
> >>
> >> but this works:
> >>
> >> double dVal = std::log(double(8.0));
> >>
> >> Works as it should on OS X10.4.5 (Intel and PC)
> >
> > On which OS did you build it, and if the answer is 10.4.x, then make
> > sure that you are using the 10.2.8 SDK for the ppc build.
>
> I'm building on an Intel Mac OS X 10.4.5
>
> using gcc 3.3 for the ppc build
> was using 10.4u SDK which works OK for everything in my apps
> except std::log10(a_float_value)
>
> changing to 10.2.8 SDK makes it work
> it also works OK with 10.3.9 SDK
> but not with 10.4u SDK
>
> why it behaves like this would be nice to know
Because that's the way it's supposed to work. If you want to target an
old version of the OS, you use the SDK that corresponds to that
version. If you use the 10.4 SDK, you are telling Xcode, "I only care
about running my app on versions of the OS greater than or equal to
10.4".
--
Clark S. Cox III
email@hidden
My CV/Resume:
http://homepage.mac.com/clarkcox3/files/Resume.pdf
http://homepage.mac.com/clarkcox3/files/Resume.html
_______________________________________________
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