• 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: gcc 3.3, Precompiled Headers and Project Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc 3.3, Precompiled Headers and Project Builder


  • Subject: Re: gcc 3.3, Precompiled Headers and Project Builder
  • From: Andrew Thompson <email@hidden>
  • Date: Tue, 8 Jul 2003 01:16:20 -0400

On Tuesday, Jul 8, 2003, at 00:50 America/New_York, Andrew Thompson wrote:
. ufi_Prefix.h
... lots more lines about the regular headers getting used...

According to the man page the 'x' indicates the precompiled header was invalid and was therefore not used.

Any thoughts?


Partially answered my own question again. In the gcc release notes it observes that a precompiled header will be ignored if it is built with different options to those used to build the main code.

In the Target Settings for my main target, I removed the -H and added -Winvalid-pch to WARNING_CFLAGS instead (see man gcc for an explanation).

Now it prints useful error messages like this:

warning: ./ufi_Prefix.h.gch: created with -gnone, but used with -gstabs

Explaining why the pch file is being skipped. Now, I can add -g to OTHER_CFLAGS in my Precompile Headers target, but if I do that I just get a warning about the next mismatching compile option, if I fix that then I get a message about the next, and the next, and the next, etc...

There must be some way to get *all* of the options the same, perhaps the Precompiled Headers can inherit them from the main target? I tried Arguments: $ALL_SETTINGS in the Precompiled Headers target, but no dice...


AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

(see you later space cowboy ...)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: gcc 3.3, Precompiled Headers and Project Builder
      • From: John Timmer <email@hidden>
References: 
 >Re: gcc 3.3, Precompiled Headers and Project Builder (From: Andrew Thompson <email@hidden>)

  • Prev by Date: Re: Sudden problems with linking my project
  • Next by Date: Re: NSHTTPURLResponse
  • Previous by thread: Re: gcc 3.3, Precompiled Headers and Project Builder
  • Next by thread: Re: gcc 3.3, Precompiled Headers and Project Builder
  • Index(es):
    • Date
    • Thread