• 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: Stephen Coy <email@hidden>
  • Date: Tue, 11 Jan 2005 16:59:40 +1100

That's correct.

Steve Coy

On 11/01/2005, at 4:35 PM, Mark Dawson wrote:

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:
email@hidden


This email sent to email@hidden


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Whitesmiths. Finally, the recipient should check this email and any attachments for the presence of viruses. Whitesmiths accepts no liability for any damage caused by any virus transmitted by this email.

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

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