• 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: Compiling Objc++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Objc++


  • Subject: Re: Compiling Objc++
  • From: Mark Dawson <email@hidden>
  • Date: Mon, 10 Jan 2005 21:35:03 -0800

So, you can't mix C++ and Obj-C? You CAN mix C++ and Obj-C++ (by naming a file .mm), but you can't just start typing C++ in a previously Obj-C only file, right?

Is it as simple as just renaming the .m file to .mm to tell the compiler that some of the compiling will be C++?

Thanks!

Mark
On 11/01/2005, at 2:17 PM, Mark Dawson wrote:

How do I tell XCode (1.5) to compile this header file as obj-c++ (or just plain C++)?



This header file must only ever be #included directly or indirectly by an obj-c++ source file (typically a .mm file).


If it has been inadvertently sucked in to the compilation of a plain obj-c source file (plain .m file) then the compiler will barf.

Steve Coy


_______________________________________________ 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
  • Follow-Ups:
    • Re: Compiling Objc++
      • From: Stephen Coy <email@hidden>
References: 
 >Compiling Objc++ (From: Mark Dawson <email@hidden>)
 >Re: Compiling Objc++ (From: Stephen Coy <email@hidden>)

  • Prev by Date: Re: Where is sqrtf?
  • Next by Date: Re: Compiling Objc++
  • Previous by thread: Re: Compiling Objc++
  • Next by thread: Re: Compiling Objc++
  • Index(es):
    • Date
    • Thread