• 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: Turn off precompiled header for one file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn off precompiled header for one file?


  • Subject: Re: Turn off precompiled header for one file?
  • From: Christiaan Hofman <email@hidden>
  • Date: Wed, 19 Jan 2011 16:05:55 +0100

On Jan 19, 2011, at 15:17, Uli Kusterer wrote:

> Am Jan 14, 2011 um 11:39 PM schrieb John Weeks:
>> On Jan 14, 2011, at 2:10 PM, Christiaan Hofman wrote:
>>> A precompiled header is for a target, not a file, so the answer as such is no. What you could do though is make use of something like "#ifdef __OBJC__" or "#ifdef __cplusplus" in the precompile header, so that it's doing different things for C++ files.
>>
>> Yup. That's pretty much what I thought, but decided it couldn't hurt to ask.
>>
>> Thanks for taking the time, Christiaan.
>
> Does GCC have an option to turn off the PCH for a file? There's this honkin' huge text field for additional compiler options in the info window for each file, if there was one, you could specify it there. Did that for a bunch of ("cross-platform" .c files that were actually C++ to turn on the C++ compiler with the -x option).
>
> Cheers,
> -- Uli Kusterer
> "The Witnesses of TeachText are everywhere..."

No. This does not make sense because the precompiled header is in fact included through a command line option (-include). You can't undo one command line option with another one; you can't "not include" an include.

Christiaan

 _______________________________________________
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: 
 >Turn off precompiled header for one file? (From: John Weeks <email@hidden>)
 >Re: Turn off precompiled header for one file? (From: Christiaan Hofman <email@hidden>)
 >Re: Turn off precompiled header for one file? (From: John Weeks <email@hidden>)
 >Re: Turn off precompiled header for one file? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Turn off precompiled header for one file?
  • Next by Date: Xcode 3.2.5 crashing when opening Xcode projects
  • Previous by thread: Re: Turn off precompiled header for one file?
  • Next by thread: Adding subprojects to main project
  • Index(es):
    • Date
    • Thread