Re: Xcode 2.2 precomp link warning
Re: Xcode 2.2 precomp link warning
- Subject: Re: Xcode 2.2 precomp link warning
- From: Greg Hurrell <email@hidden>
- Date: Mon, 14 Nov 2005 02:17:42 +0100
El 14/11/2005, a las 1:52, Ricky Sharp escribió:
On Nov 13, 2005, at 12:50 PM, Chris Espinosa wrote:
On Nov 13, 2005, at 10:25 AM, Eric Albert wrote:
/usr/bin/ld: warning /Library/Caches/com.apple.Xcode.501/
SharedPrecompiledHeaders/AppKit-blqywaoivjvvmxbulbeesgzoomdp/
AppKit.h.gch.o cputype (18, architecture ppc) does not match
cputype (7) for specified -arch flag: i386 (file not loaded)
How bad does this warning rank on the badness scale? Is the
linked product horribly broken as a result or is this just a
minor thing?
In both cases here, the thing that stands out as odd is that the
linker is being told to pull in your precompiled header. That
doesn't make any sense. If you can figure out why that's
happening, I bet you'll be able to track down the real problem.
Perhaps the .pch file is in your compile sources build phase or
something like that?
Is there any chance that your Compile Sources build phase might
have the precompiled header (the .gch) listed in it? In that case
Xcode will try to recompile the precompiled header to create an
object file, then try to link that object file into the executable.
My .pch wasn't in the Compile Sources phase of either build
config. However, it was being included in both targets (it was
listed under the Other Sources folder and checked for inclusion to
my targets).
Same here. Toggling the checkbox for the prefix header on and off in
the "Groups & Fles" view results in it being added to or removed from
the "Copy Headers" build phase; but it was never in the "Compile
Sources" phase. Either way, the warning gets produced, but only on
the i386 build, not the ppc one.
Greg
_______________________________________________
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