Re: C++ in a Cocoa App - How Hard is THAT?
Re: C++ in a Cocoa App - How Hard is THAT?
- Subject: Re: C++ in a Cocoa App - How Hard is THAT?
- From: "Corey O'Connor" <email@hidden>
- Date: Fri, 7 Oct 2005 16:51:36 -0700
On 10/7/05, Lance Drake <email@hidden> wrote:
> As it happens, I cannot include the ".h" file in the Cocoa .m file (so
> as to be able to create the object and then refer to it) as the
> complaints appear immediately upon the compiler encountering the word
> 'class'.
A file with the extension ".m" is compiled as Objective-C [1], a file
with extension ".mm" it is compiled as Objective-C++. Try changing the
source file to have a ".mm" extension.
[1] By default anyways. You can change the rules if you'd like.
--
-Corey O'Connor
_______________________________________________
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