Re: pragma for compiling as Obj-C++
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