Re: Simple C++/Obj-C question
Re: Simple C++/Obj-C question
- Subject: Re: Simple C++/Obj-C question
- From: "M. Uli Kusterer" <email@hidden>
- Date: Mon, 26 May 2003 10:15:21 +0200
At 21:36 Uhr +0200 25.05.2003, Daniel Aarno wrote:
I have a Obj-C class called MyView that need to access a data
structure (implemented as an C++ class), MyData, written in C++.
When I try to include MyData.h in MyView.h the compiler grinds to a
halt on all the C++ keywords such as class, public etc.
Hi,
I think you have to make all ObjC files that include the C++ file
ObjC++ files. I.e. give them the "mm" suffix. That's needed because
otherwise the ObjC parser will only be used, and since C, C++ and
ObjC all use ".h" to indicate header files, ObjC will simply think
it's a malformed ObjC header.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.