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

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


  • Subject: How do I force prefix file to be precompiled w/C++ compiler?
  • From: Jim Wintermyre <email@hidden>
  • Date: Wed, 13 Jul 2011 16:18:02 -0700

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.

Slightly related question - where is the documentation on what the file types in the File Type popup actually mean? For example, what is the difference between "sourcecode.cpp" and "sourcecode.cpp.cpp"? And where is that file type associated with a particular compiler?

Thanks,
Jim
_______________________________________________
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: Scott Ribe <email@hidden>
  • Prev by Date: Re: new crash in Xcode 4
  • Next by Date: Re: How do I force prefix file to be precompiled w/C++ compiler?
  • Previous by thread: Re: new crash in Xcode 4
  • Next by thread: Re: How do I force prefix file to be precompiled w/C++ compiler?
  • Index(es):
    • Date
    • Thread