Re: any way to have Xcode treat .cpp files like .mm files?
Re: any way to have Xcode treat .cpp files like .mm files?
- Subject: Re: any way to have Xcode treat .cpp files like .mm files?
- From: Alastair Houghton <email@hidden>
- Date: Wed, 28 Jan 2004 15:45:06 +0000
On 28 Jan 2004, at 15:36, Jens Miltner wrote:
>
> Am 28.01.2004 um 16:24 schrieb Alastair Houghton:
>
>> Have you tried the -x compiler switch? You should be able to add -x
>> objective-c++ to the options for your .cpp files to get the behaviour
>> you want.
>>
>> Take a look at the GCC manual, here:
>>
>> http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/gcc/
>> Overall-Options.html#Overall Options
>>
>> for more information.
>
> Yeah - of course, that did the trick. Thanks!
> Any idea whether I can set the on a per-project basis for certain
> filename patterns (e.g. *.cpp)?
Not that I know of. There is a setting in the inspector for the
project or target called "Compile Files As" (under "GNU C/C++
Compiler"), which applies to all of the files in the project, but I
haven't seen any options to set things on a per-file-type basis.
Kind regards,
Alastair.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.