• 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
using lgamma_r
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using lgamma_r


  • Subject: using lgamma_r
  • From: Michael McLaughlin <email@hidden>
  • Date: Thu, 28 Feb 2008 11:52:02 -0500
  • Thread-topic: using lgamma_r

I have a multi-threaded CoreServices C++ tool project built for OS 10.5.  I
want/need to use lgamma_r in one of my functions.  Therefore, as stated in
math.h, I added the precompiler flag

-D_REENTRANT

to the Build options.

The relevant code fragment, viz.,

double pdf(double x, double lambda) {
   int   *signgam;
   double logpdf = x*log(lambda) - lambda - lgamma_r(x + 1, signgam);
...
}

builds successfully with ppc architecture but *fails* when the i386
architecture is added. [I need the latter for a universal binary.]  The
build results confirm that the i386 compile is what fails.

Math.h mentions lgamma_r in just one block and says nothing special about
i386.

Did I do something wrong?  Is there another flag that must be set?

TIA.

--
Mike McLaughlin

 _______________________________________________
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

  • Prev by Date: Re: NSButton setStringValue
  • Next by Date: Setting up weak-linking in Xcode, as described in TN2064
  • Previous by thread: Re: NSButton setStringValue
  • Next by thread: Setting up weak-linking in Xcode, as described in TN2064
  • Index(es):
    • Date
    • Thread