• 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: pragma for compiling as Obj-C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pragma for compiling as Obj-C++


  • Subject: Re: pragma for compiling as Obj-C++
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 26 Feb 2009 07:51:38 -0800


On Feb 26, 2009, at 7:05 AM, glenn andreas wrote:

I'm wondering if there is a pragma I can use to tell gcc to compile a file as Obj-C++ instead of C++. (I looked, but didn't find one.) Here's what I'd like to do:


There isn't - you just set the "file's extra compiler flags" to include "-x objective-c++".

It's easier than that.

1) Select file
2) Choose Get Info
3) In General tab, set File Type popup:

PNG image





 _______________________________________________
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: 
 >pragma for compiling as Obj-C++ (From: Eric Johnson <email@hidden>)
 >Re: pragma for compiling as Obj-C++ (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: How to (re)set DEVELOPER_SDK_DIR
  • Next by Date: Re: How to (re)set DEVELOPER_SDK_DIR
  • Previous by thread: Re: pragma for compiling as Obj-C++
  • Next by thread: XCode Debugger: Code window does not match stack window
  • Index(es):
    • Date
    • Thread