• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple C++/Obj-C question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Simple C++/Obj-C question (From: Daniel Aarno <email@hidden>)

  • Prev by Date: how do I unsubscribe?
  • Next by Date: Re: Tooltip Question
  • Previous by thread: Simple C++/Obj-C question
  • Next by thread: Re: Simple C++/Obj-C question
  • Index(es):
    • Date
    • Thread