• 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: Compiler pukes on Cocoa.h in .mm/.h file; __OBJ__ not defined
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler pukes on Cocoa.h in .mm/.h file; __OBJ__ not defined


  • Subject: Re: Compiler pukes on Cocoa.h in .mm/.h file; __OBJ__ not defined
  • From: James Walker <email@hidden>
  • Date: Fri, 27 Feb 2015 16:40:26 -0800

On 2/27/2015 1:20 PM, Jerry Krinock wrote:

On 2015 Feb 27, at 13:06, Kyle Sluder <email@hidden> wrote:

What does the build log say for that file?

Good question, Kyle. Hmmmm, the CompileC command says <blah blah>
c++
in the place where it should say <blah blah> objective-c.

If I recall correctly, there are some settings where you can map file
types to what the compiler does with them.  Probably someone has
played with those.  I thought those were in the “Build Rules” tab,
but I can’t find them just now.  Still looking.

Look in the target build settings under "Language" and see whether "Compile Sources As" is set to "C++" instead of "According to File Type".
_______________________________________________
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: 
 >Compiler pukes on Cocoa.h in .mm/.h file; __OBJ__ not defined (From: Jerry Krinock <email@hidden>)
 >Re: Compiler pukes on Cocoa.h in .mm/.h file; __OBJ__ not defined (From: Kyle Sluder <email@hidden>)
 >Re: Compiler pukes on Cocoa.h in .mm/.h file; __OBJ__ not defined (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Get or Trick Xcode into Using A Different Compiler
  • Next by Date: Re: Get or Trick Xcode into Using A Different Compiler
  • Previous by thread: Re: Compiler pukes on Cocoa.h in .mm/.h file; __OBJ__ not defined
  • Next by thread: Get or Trick Xcode into Using A Different Compiler
  • Index(es):
    • Date
    • Thread