• 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: Stefan Werner <email@hidden>
  • Date: Wed, 25 Feb 2009 12:39:43 -0800

I want to use the extension ".cpp", so that I can use the file on Mac and Windows, but I need the file to be compiled as Objective-C+ +, since "foo.h" contains some objective-C syntax (that's #ifdef'd for Mac).


I'm not aware of a pragma, but if it helps, there's a gcc command line option to force compilation as Obj-C++. If you're building with Xcode, you can also set the type for just that file in the get info dialog.

-Stefan
_______________________________________________
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>)

  • Prev by Date: pragma for compiling as Obj-C++
  • Next by Date: Re: Checking dependencies
  • Previous by thread: pragma for compiling as Obj-C++
  • Next by thread: Re: pragma for compiling as Obj-C++
  • Index(es):
    • Date
    • Thread