• 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: C++ in a Cocoa App - How Hard is THAT?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >C++ in a Cocoa App - How Hard is THAT? (From: Lance Drake <email@hidden>)

  • Prev by Date: C++ in a Cocoa App - How Hard is THAT?
  • Next by Date: Re[2]: C++ in a Cocoa App - How Hard is THAT?
  • Previous by thread: C++ in a Cocoa App - How Hard is THAT?
  • Next by thread: Re: C++ in a Cocoa App - How Hard is THAT?
  • Index(es):
    • Date
    • Thread