• 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: Standard C++ Includes For iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Standard C++ Includes For iPhone


  • Subject: Re: Standard C++ Includes For iPhone
  • From: Andreas Grosam <email@hidden>
  • Date: Sat, 6 Feb 2010 21:20:41 +0100

On Feb 4, 2010, at 11:12 PM, Nick Nallick wrote:

> I'm trying to use GCC 4.2 for an iPhone 3.1 project which contains C++ code.  It works fine building for the simulator but I can't build for the device.  When I include <exception> I get an error indicating that <bits/c++config.h> can't be found.

When using C++ in Objective-C files (file extension: .m) you need to "activate" the Objective-C++ compiler. Simply rename the extension to .mm. Xcode will invoke the Objective-C++ compiler.

Using C++ within Objective-C++ isn't without traps and catches, though. So, you're better off reading the corresponding documentation carefully.


Regards
Andreas


 _______________________________________________
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: Standard C++ Includes For iPhone
      • From: David Rowland <email@hidden>
References: 
 >Standard C++ Includes For iPhone (From: Nick Nallick <email@hidden>)

  • Prev by Date: std::locale
  • Next by Date: Re: Provisioning Profile Expiration
  • Previous by thread: Standard C++ Includes For iPhone
  • Next by thread: Re: Standard C++ Includes For iPhone
  • Index(es):
    • Date
    • Thread