• 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: How do I force prefix file to be precompiled w/C++ compiler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I force prefix file to be precompiled w/C++ compiler?


  • Subject: Re: How do I force prefix file to be precompiled w/C++ compiler?
  • From: Scott Ribe <email@hidden>
  • Date: Wed, 13 Jul 2011 21:15:30 -0600

On Jul 13, 2011, at 5:18 PM, Jim Wintermyre wrote:

> I have a project that uses a prefix header that is set to be precompiled.  If I set the "Compile Sources As" setting to "C++", then this file gets precompiled with the C++ compiler (I verified the "-x c++-header" in the build output).  But... I can't use the C++ setting for compile sources as for this project!  So, if I have to use "According to File Type" for that setting, how do I force the prefix file to still get compiled with the C++ compiler?  I tried adding the prefix header to the project and manually changing its file type to to sourcecode.cpp.h, but that didn't make a difference (it's compiled with "-x c-header").  Any other way to do this?  In case it matters, the prefix file is named <filename>.pch.

Your prefix file will be precompiled potentially multiple times, as needed to compile the types of files in your project.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




 _______________________________________________
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: How do I force prefix file to be precompiled w/C++ compiler?
      • From: Jim Wintermyre <email@hidden>
References: 
 >How do I force prefix file to be precompiled w/C++ compiler? (From: Jim Wintermyre <email@hidden>)

  • Prev by Date: How do I force prefix file to be precompiled w/C++ compiler?
  • Next by Date: Code Signing AFTER Copy Phases
  • Previous by thread: How do I force prefix file to be precompiled w/C++ compiler?
  • Next by thread: Re: How do I force prefix file to be precompiled w/C++ compiler?
  • Index(es):
    • Date
    • Thread