Re: Compiling Objc++
Re: Compiling Objc++
- Subject: Re: Compiling Objc++
- From: Scott Tooker <email@hidden>
- Date: Mon, 10 Jan 2005 19:34:12 -0800
I think that in Xcode 1.5 you can set the filetype of the file
reference (via the inspector) and Xcode will treat it accordingly.
If this doesn't work in Xcode 1.5 it should be possible in the next
version of Xcode.
Scott
On Jan 10, 2005, at 7:17 PM, Mark Dawson wrote:
How do I tell the compiler that a .h file is to be a C++ file?
If I have a rect.h:
struct MyRect {
unsigned x;
unsigned y;
MyRect() : x(0), y(0) {}
};
I can't seem to use this in my obj-c header. This file doesn't have
an associated .mm (C++) file (its just inlines). This should be legal
(I thought the main criteria was no virtual functions), I think.
How do I tell XCode (1.5) to compile this header file as obj-c++ (or
just plain C++)?
Thanks!
mark
_______________________________________________
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
_______________________________________________
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