Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.2.1 precomp link warning -> still happening



Thanks for writing, Chris...

The checkbox for target memberships for my .pch file is disabled (in this
project, I just have a single target) no matter what I seem to do.  Do you
know what causes it to be enabled or disabled?

I did some trial and error testing and I think I've made some progress...
If "Precompile Prefix Header" (GCC_PRECOMPILE_PREFIX_HEADER) = YES, do a
clean, and then a rebuild I get the link warning (just one warning for i386
as I listed).  When I uncheck it, do a clean, and then a rebuild, then the
warning is not generated.

Here's some other relevant settings that may be important (although they are
the default setting--there were unchanged in the trials I described above):

PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES
GCC_USE_GCC3_PFE_SUPPORT = YES
GCC_ENABLE_SYMBOL_SEPARATION = YES

This project is a fairly uncomplicated .bundle project (in that most of the
default settings are the xcode default).

Thanks,
Andy



On 3/31/06 3:53 PM, "Chris Espinosa" <email@hidden> wrote:

> On Mar 31, 2006, at 11:55 AM, Andy O'Meara wrote:
> 
>> 
>> I'm using Xcode 2.2.1 on the normal 10.4 sdk and getting the following
>> warning for only i386:
>> 
>> /usr/bin/ld: warning
>> /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/(name)
>> _Prefix-h
>> kjldpobwkrpsnfotlnxvvbqiwkb/(name)_Prefix.pch.gch.o cputype (18,
>> architecture ppc) does not match cputype (7) for specified -arch
>> flag: i386
>> (file not loaded)
>> 
>> This issue was raised a couple months ago but unfortunately no
>> resolution or
>> explanation was ever raised:
>> 
>> http://lists.apple.com/archives/xcode-users/2005/Nov/msg00387.html
>> 
>> Anyone know the explanation?
> 
> The main thing is that the precompiled header should not be linked.
> 
> Do you have your prefix file as a target member, and in the Compile
> Sources build phase?
> 
> Chris
> 
> 


 _______________________________________________
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

References: 
 >Re: Xcode 2.2.1 precomp link warning -> still happening (From: Chris Espinosa <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.