Name your Obj-C source file ending in .mm rather than .m.
-- Jim
On Aug 9, 2010, at 11:01 PM, Wayne Shao wrote:
> Hi,
>
> I have a C++ util class (note: pure C++, it does not use obj-c objects in
> the C++ files).
>
> When I added the C++ classes to Cocoa project, it compiles fine.
> But when
Hi,
I have a C++ util class (note: pure C++, it does not use obj-c objects in
the C++ files).
When I added the C++ classes to Cocoa project, it compiles fine.
But when I add C++ include from the ObjC class, it gives all kinds of
errors.
(Note: this is different from what the guide describes here