• 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: Fri, 14 Jan 2011 23:10:30 +0100


On Jan 14, 2011, at 19:15, John Weeks wrote:

Is there a way to tell Xcode to not use the procompiled header for one of my .cpp files? I guess I could make a separate project and compile it into a library, but I was hoping for something short of that.

Regards,
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax   (503) 620-6754
email   email@hidden

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.

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

  • Follow-Ups:
    • Re: Turn off precompiled header for one file?
      • From: John Weeks <email@hidden>
References: 
 >Turn off precompiled header for one file? (From: John Weeks <email@hidden>)

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