• 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: Obj-c and c++ in same file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obj-c and c++ in same file


  • Subject: Re: Obj-c and c++ in same file
  • From: James Dessart <email@hidden>
  • Date: Tue, 15 Mar 2005 12:13:21 -0500

On Tue, 15 Mar 2005 17:01:47 +0000, Mark Thomas <email@hidden> wrote:
> Is this possible. I have in the passedd created a straight C glue file,
> where there's C functions which do the C++ work in a separate .cpp file, but
> I wondered if I can have both in a .m file.

It'd be a .mm file, so yes, it is possible. If you want the compiler
to automatically detect that it's Objective-C++, that is. You can also
force the language in XCode, in the target settings.

Hope that helps!

James
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Obj-c and c++ in same file (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Responder chain difficulty
  • Next by Date: Re: Obj-c and c++ in same file
  • Previous by thread: Obj-c and c++ in same file
  • Next by thread: Re: Obj-c and c++ in same file
  • Index(es):
    • Date
    • Thread