• 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 to get details of link errors with Xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get details of link errors with Xcode?


  • Subject: Re: How to get details of link errors with Xcode?
  • From: Bill Northcott <email@hidden>
  • Date: Fri, 19 Aug 2005 08:24:23 +1000

On 19/08/2005, at 12:28 AM, Sean McBride wrote:
ld: Undefined symbols:
_sprintf$LDBLStub


Not very useful. :( Is there any way to get Xcode to give useful
I'm afraid you have me quite confused... :) I don't use ld or libtool
at all, I use Xcode. Of course I know Xcode may use these things under
the hood, but I have done nothing special to my xcode projects. My
static libs are added by drag and drop, settings are set with the GUI
(I've never added any 'other flags' kind of things).

If Xcode is using gcc-3.3 but tries to link a function from a static library built with gcc-4 that calls the sprint() function you will get that error. The reason is that printf() and friends are actually macros in gcc-4 that call underlying library functions like sprintf $LDBLStub.


Bill

_______________________________________________
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 to get details of link errors with Xcode? (From: Bill Northcott <email@hidden>)
 >Re: How to get details of link errors with Xcode? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Debugging with x code
  • Next by Date: Re: custom visualization in gdb...
  • Previous by thread: Re: How to get details of link errors with Xcode?
  • Next by thread: Re: How to get details of link errors with Xcode?
  • Index(es):
    • Date
    • Thread