Compiling Objc++
Compiling Objc++
- Subject: Compiling Objc++
- From: Mark Dawson <email@hidden>
- Date: Mon, 10 Jan 2005 19:17:41 -0800
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