Re: Link error (sprintf, vsprintf missing)
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