• 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: std::log10() problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: std::log10() problem


  • Subject: Re: std::log10() problem
  • From: "Roni Music" <email@hidden>
  • Date: Wed, 29 Mar 2006 21:23:52 +0200


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

Rolf




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


  • Follow-Ups:
    • Re: std::log10() problem
      • From: "Clark Cox" <email@hidden>
References: 
 >std::log10() problem (From: Rolf Nilsson <email@hidden>)
 >Re: std::log10() problem (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: Extra files in the bundle
  • Next by Date: Re: Strange Behavior With Variable Names
  • Previous by thread: Re: std::log10() problem
  • Next by thread: Re: std::log10() problem
  • Index(es):
    • Date
    • Thread