• 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: Multiple Pre-Compiled Headers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Pre-Compiled Headers?


  • Subject: Re: Multiple Pre-Compiled Headers?
  • From: "Jason T. Slack-Moehrle" <email@hidden>
  • Date: Wed, 30 Jan 2013 08:42:05 -0800

Thanks everyone. That works and a neat little trick!


On Wed, Jan 30, 2013 at 8:39 AM, Aaron Montgomery <email@hidden> wrote:
Hi Jason,

I'm pretty sure you just get one precompiled header (I don't think you could precompile two headers and then merge the results in any meaningful way). You should be able to #include common.pch from inside appspecific.pch because common.pch is just a text file (with a funny suffix to tip off the compiler that you will be precompiling it).

Aaron

On Jan 30, 2013, at 8:25 AM, Jason T. Slack-Moehrle <email@hidden> wrote:

> Hello All,
>
> XCode 3.2.6.
>
> I have a large codebase that builds 4 products. Each product has a Pre-Compiled Header.
>
> These PCH's duplicate a lot of defines, settings, etc.
>
> I wanted to separate them out into a common.pch and an appspecific.pch but I tried specifying both in the target settings for 'Prefix Header' and I get an error
>
> I have tried like:
>
> common.pch appspecific.pch
> common.pch; appspecific.pch
> common.pch, appspecific.pch
>
> and nothing.
>
> Can one 'include' a PCH in a PCH? So the appspecific.pch will #include the common.pch?
>
> Jason
> _______________________________________________
> 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


 _______________________________________________
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: 
 >Multiple Pre-Compiled Headers? (From: "Jason T. Slack-Moehrle" <email@hidden>)
 >Re: Multiple Pre-Compiled Headers? (From: Aaron Montgomery <email@hidden>)

  • Prev by Date: Re: Multiple Pre-Compiled Headers?
  • Next by Date: Re: macro warnings in Xcode 4.6
  • Previous by thread: Re: Multiple Pre-Compiled Headers?
  • Next by thread: What happened to the option to not copy coloring and styling from the editor?
  • Index(es):
    • Date
    • Thread