• 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: PCH being precompiled twice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCH being precompiled twice


  • Subject: Re: PCH being precompiled twice
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 29 Nov 2005 11:29:52 -0800


On Nov 29, 2005, at 11:17 AM, Steve Mills wrote:

At some point, Xcode has started procompiling my .pch twice. By looking at the build transcript, I see that one is correctly being compiled as C++, but the 2nd one (the one that generates hundreds of errors) is being compiled as regular C.


Any idea why this is happening? I think it started after I added a new folder of files to my project. These are portable files (for out PC and Mac projects). The only oddity is that the use .cpp instead of .cp as their extension. Could that confuse Xcode?


Ah. I found the "C Dialects to Precompile" setting and set it to only "c++". That fixed its wagon. I still don't know why adding .cpp files made it change. Our Mac C++ files use the .cp extension. Perhaps Xcode doesn't know that those are C++ files?


Do a Get Info on the file and see what its File Type is set to: if it's "sourcecode.cpp" then change it to "sourcecode.cpp.cpp".

Chris
 _______________________________________________
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: 
 >PCH being precompiled twice (From: Steve Mills <email@hidden>)
 >Re: PCH being precompiled twice (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: PCH being precompiled twice
  • Next by Date: Re: Project dependencies (AppleScript)
  • Previous by thread: Re: PCH being precompiled twice
  • Next by thread: Re: PCH being precompiled twice
  • Index(es):
    • Date
    • Thread