• 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: Xcode 5 & Obj-C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 5 & Obj-C++


  • Subject: Re: Xcode 5 & Obj-C++
  • From: Abdul Sowayan <email@hidden>
  • Date: Wed, 29 Jan 2014 17:13:14 +0000
  • Thread-topic: Xcode 5 & Obj-C++

Peter,

On Jan 29, 2014, at 12:02 PM, Peter Teeson <email@hidden<mailto:email@hidden>> wrote:

I have a project in which I want to take advantage of the C++ Standard library
(primarily because of the container classes - including the special ones).
FWIW the project has to traverse a directed acyclic graph  (yes I know about the boost lib).
For the rest of the project Obj-C and Cocoa is sufficient.

All the searching I've done has not turned up anything current about how things work
these days with Xcode 5 and llvm. There is the  2005 ObjC++.pdf which I have
but Xcode has changed a lot since those days.

I understand that the file extension needs to be .mm to mix Obj-C and C++.
But other than a command line template, which is for C++, there does not seem to be one for ObjC++.

There are several ways you can do this, I mention two here:

1- As you mentioned, change the file extension to .mm

2- In your build setting (depending on configuration) you will see either of the two below

GCC_INPUT_FILETYPE

Compile Sources As

You can change this setting to compile all your files as Objective-C++, regardless of the file extension.


Are there any current docs that my search didn't find and that you can point me to?
Or advice you can offer to help me?


Well, I’m not clear as to what information you’re trying to find. Can you elaborate?

Thanks,
Abdul



TIA and respect….

Peter




_______________________________________________

Cocoa-dev mailing list (email@hidden<mailto:email@hidden>)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com<http://lists.apple.com>

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Xcode 5 & Obj-C++
      • From: Peter Teeson <email@hidden>
References: 
 >Xcode 5 & Obj-C++ (From: Peter Teeson <email@hidden>)

  • Prev by Date: Xcode 5 & Obj-C++
  • Next by Date: Re: Xcode 5 & Obj-C++
  • Previous by thread: Xcode 5 & Obj-C++
  • Next by thread: Re: Xcode 5 & Obj-C++
  • Index(es):
    • Date
    • Thread