• 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: Link error (sprintf, vsprintf missing)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link error (sprintf, vsprintf missing)


  • Subject: Re: Link error (sprintf, vsprintf missing)
  • From: Svein E Kvernoey <email@hidden>
  • Date: Wed, 03 May 2006 12:47:11 +0100
  • Organization: Sports Interactive Limited

we are trying to build an XCode project as Universal Binary (XCode 2.2.1, Intel-Mac, OS 10.4.6). The Intel code is built correctly, but the Power PC code is not because of three link errors (undefined symbols _sprintf$LDBLStub, _vsprintf$LDBLStub, _sscanf$LDBLStub). The projects contains other (some of them third-party) libraries. I tried linker options -lc and -lSystemStubs, but neither worked.
Is this a known problem and how can it be solved?


I had similar link errors (*$LDBStub), and like you, the suggested workarounds I could find did not help. In the end I realised that the reason seems to be linking against the 10.3.9 SDK for the PPC build. Changing this to 10.4u SDK and it links just fine. As we will "only" support 10.3.9 for PPC this is fine - setting the Deployment Target for PPC to 10.3 ensures any 10.4-only APIs are weak-linked (so if we use them we have to check for availability at run-time; we don't, so it's not a problem).


Cheers,
Svein.

--
Svein E Kvernoey, email@hidden
Sports Interactive, http://www.sigames.com/
Hugs, Love & Kisses, http://boah.us/

"Care for some salad? I made it myself."

_______________________________________________
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: 
 >Link error (sprintf, vsprintf missing) (From: Stefan Bender <email@hidden>)

  • Prev by Date: Re: xcode?!? where do I get it?
  • Next by Date: Re: Link error (sprintf, vsprintf missing)
  • Previous by thread: Re: Link error (sprintf, vsprintf missing)
  • Next by thread: Linker can't find symbol _environ in Framework
  • Index(es):
    • Date
    • Thread