Re: using xcode ,how to compile .c file as .m file?
Re: using xcode ,how to compile .c file as .m file?
- Subject: Re: using xcode ,how to compile .c file as .m file?
- From: Graham Cox <email@hidden>
- Date: Tue, 30 Mar 2010 22:19:20 +1100
On 30/03/2010, at 8:32 PM, simon Scylla wrote:
> i need to port some code to iphone and now i find that i can not call system
> interface of objc. i can rename my files from 888.c to ***.m and it works.
> but i do not wanna rename my files.
> what should i do?i think there must be some choice in xcode.but i don't
> konw......[?]
You can go into the project build settings and under GCC 4.2 Language section, select 'Objective-C' under 'Compile Sources As' instead of 'According to File Type'.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden