Re: lib does not match cputype
Re: lib does not match cputype
- Subject: Re: lib does not match cputype
- From: Eric Albert <email@hidden>
- Date: Thu, 22 Dec 2005 16:00:34 -0800
On Dec 22, 2005, at 3:56 PM, Michael Hanna wrote:
hi, at the commandline:
env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
i386 -arch ppc" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/
MacOSX10.4u.sdk" ./configure --disable-dependency-tracking
in XCode 2.2:
set Architecture to both ppc i386
I put the libraries in Linked Frameworks group, and added them to
the Link Binary with Libraries node.
at build:
/usr/bin/ld: warning /Users/tao/SimplePlayFile/libSoundTouch.a
archive's cputype (18, architecture ppc) does not match cputype (7)
for specified -arch flag: i386 (can't load from it)
any ideas why I still get the warning?
Change your LDFLAGS to this:
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
We're updating the tech note to add this, but I don't know when it'll
get posted.
Hope this helps,
Eric
_______________________________________________
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