• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 2.2.1 precomp link warning -> still happening
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.2.1 precomp link warning -> still happening


  • Subject: Re: Xcode 2.2.1 precomp link warning -> still happening
  • From: "Andy O'Meara" <email@hidden>
  • Date: Fri, 31 Mar 2006 18:15:43 -0500
  • Thread-topic: 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:

This email sent to email@hidden

References: 
 >Re: Xcode 2.2.1 precomp link warning -> still happening (From: Chris Espinosa <email@hidden>)

  • Prev by Date: extern "C" and global variables
  • Next by Date: CVS SSH sometimes works in xCode
  • Previous by thread: Re: Xcode 2.2.1 precomp link warning -> still happening
  • Next by thread: extern "C" and global variables
  • Index(es):
    • Date
    • Thread