Re: Compiler pukes on Cocoa.h in .mm/.h file; __OBJ__ not defined
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