• 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: Compile errors in PCH on Mac OS X project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile errors in PCH on Mac OS X project


  • Subject: Re: Compile errors in PCH on Mac OS X project
  • From: Robert Tillyard <email@hidden>
  • Date: Fri, 01 Jun 2012 10:10:50 +0100

Title: Re: Compile errors in PCH on Mac OS X project

On 1 Jun 2012, at 08:01, TAYLOR J.M. wrote:

> My .pch file is:
...
> But I do have C files in the project. I tried removing them but the build fails in the same place.

If you have mixed file types in your project then you will have multiple precompiled headers. To be sure *which* one is leading to the error, you might have a look at the full command associated with the build error. That will tell you which language variant is associated with the problem, which might give you some clues. You could then, if you wanted, disable precompilation and just include your pch header file from a relevant source file, which might allow you to play around more easily to work out where the problem is coming from.

Thanks, 

If I disable pre-compilation the build fails in main.m in the #import <Cocoa/Cocoa.h> with the same errors. So I'm guess that it's failing with Objective-C but don't know why.

Regards, Rob.
 _______________________________________________
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: 
 >Re: Compile errors in PCH on Mac OS X project (From: "TAYLOR J.M." <email@hidden>)

  • Prev by Date: Re: Compile errors in PCH on Mac OS X project
  • Next by Date: Re: Xcode 4.3 Enable Guard Malloc
  • Previous by thread: Re: Compile errors in PCH on Mac OS X project
  • Next by thread: Re: Xcode 4.3 Enable Guard Malloc
  • Index(es):
    • Date
    • Thread