• 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: Where is sqrtf?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is sqrtf?


  • Subject: Re: Where is sqrtf?
  • From: Jerry <email@hidden>
  • Date: Sun, 9 Jan 2005 16:16:59 +0000


On 9 Jan 2005, at 04:50, Eric Albert wrote:

On Jan 8, 2005, at 7:18 PM, Robert Purves wrote:

Note: -lmx is required for C99 float functions such as sqrtf, in math.h

When I try the same in Xcode (with -lmx specified in Other C Flags), I get an error:
gcc-3.3: -lmx: linker input file unused because linking not done
ld: Undefined symbols: _sqrtf


How can I persuade Xcode that sqrtf exists?

Other C Flags is used for compiling, but -lmx is a linker flag. Other Linker Flags is used for linking. Set that and this'll work.


A more Xcode-like way to do this is to add /usr/lib/libmx.dylib to your project: Project->Add To Project, type '/' to get a Go To dialog, go to /usr/lib, select libmx.dylib, and then build.

If you use libmx, your app won't run under Jaguar because all the 'f' functions were in libm on Jaguar. Does anyone know a way to work round this?


Jerry

_______________________________________________
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: Where is sqrtf?
      • From: Robert Purves <email@hidden>
    • Re: Where is sqrtf?
      • From: Robert Purves <email@hidden>
References: 
 >Where is sqrtf? (From: Robert Purves <email@hidden>)
 >Re: Where is sqrtf? (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: Where is sqrtf?
  • Next by Date: IB 'Images' sorting algorithm...
  • Previous by thread: Re: Where is sqrtf?
  • Next by thread: Re: Where is sqrtf?
  • Index(es):
    • Date
    • Thread