Re: Linking universal binary framework with UNIX library
- Subject: Re: Linking universal binary framework with UNIX library
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 20 Nov 2005 22:15:35 +0000
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r8dynjAx8Eq3jtVATDgcO067lw1r0EKzfnBPWS8Rs3yS9UfZtQMeGQgx/xjieSZZ7f+/Pq5gu1g3TzennbgGRR/s8PgurXQGPtOTHyDEcuzhM2c+3RrD33BvmsVvOlX8lzornMLJ3+RqhYCiZG5wL+NbA+++B6pJemao6Cz/oNY=
On 20/11/05, Andrew Zamler-Carhart <email@hidden> wrote:
> Dear David et al,
>
> Thanks for letting me know how to compile universal binaries on the
> command line. The library (libjpeg.a) compiled for ppc/i386 with no
> errors.
>
> However, when I try to compile the framework that uses this library,
> I get the following link errors:
>
> ld: Undefined symbols:
> _fprintf$LDBLStub
> _sprintf$LDBLStub
> _sscanf$LDBLStub
Build with -isysroot /Developer/SDKs/MacOSX10.4u.sdk in your CFLAGS
and -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk in LDFLAGS
This is documented:
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/Using/chapter_3_section_2.html>
<http://developer.apple.com/technotes/tn2005/tn2137.html>
<http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html>
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.