• 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: Aaron Montgomery <email@hidden>
  • Date: Wed, 30 Jan 2013 08:39:00 -0800

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

  • Follow-Ups:
    • Re: Multiple Pre-Compiled Headers?
      • From: "Jason T. Slack-Moehrle" <email@hidden>
References: 
 >Multiple Pre-Compiled Headers? (From: "Jason T. Slack-Moehrle" <email@hidden>)

  • Prev by Date: Re: Multiple Pre-Compiled Headers?
  • Next by Date: Re: Multiple Pre-Compiled Headers?
  • Previous by thread: Re: Multiple Pre-Compiled Headers?
  • Next by thread: Re: Multiple Pre-Compiled Headers?
  • Index(es):
    • Date
    • Thread