Re: to include a C++ class in proj
Re: to include a C++ class in proj
- Subject: Re: to include a C++ class in proj
- From: "Sherm Pendley" <email@hidden>
- Date: Thu, 27 Mar 2008 09:59:11 -0400
On Thu, Mar 27, 2008 at 9:44 AM, Nick Rogers <email@hidden> wrote:
> are we allowed to do that in a cocoa proj.
> if so how do we declare the class.
>
> Is it like?
>
> class MyClass
> {
>
> }
>
> this is throwing error at the first line: parse error before
> 'MyClass' token
To compile a file as Objective-C++, you need to give it a .mm extension
instead of .m.
See also:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_12_section_3.html
>
sherm--
_______________________________________________
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