• 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: C++ mixed with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ mixed with Cocoa


  • Subject: Re: C++ mixed with Cocoa
  • From: Timothy Ritchey <email@hidden>
  • Date: Mon, 30 Sep 2002 21:24:44 -0500

Are you including a C++ header in an objective-c-only file that ends with just .m?

On Monday, September 30, 2002, at 09:18 PM, Terence Goggin wrote:

Hi,

Yep, tried that too; no effect... sorry for not mentioning it earlier.

Terence

From: Timothy Ritchey <email@hidden>
To: "Terence Goggin" <email@hidden>
CC: email@hidden
Subject: Re: C++ mixed with Cocoa
Date: Mon, 30 Sep 2002 21:09:25 -0500

rename the extension to .mm

Cheers,
tim

On Monday, September 30, 2002, at 08:55 PM, Terence Goggin wrote:

Hi all,

I know this is supposed to be possible, but I just keep getting a mess of errors saying things like...

undefined type, found `class' (for a definition in a .h file)
illegal external declaration, missing `;' after 'MyClass'

and so on ...

I've made sure that the .cp files were renamed to .cpp, compared against the sample code on Apple, etc.... but can't figure out what I'm missing. (And I assume this is just a flag or setting I need to adjust somewhere.)

Any thoughts or suggestions would be helpful!

Thanks,
Terence


_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com
_______________________________________________
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.





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
_______________________________________________
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.

  • Prev by Date: (newbie)sun vs. apple....
  • Next by Date: Re: Behavior of autoreleased window controller for closing window vs. app termination
  • Previous by thread: (newbie)sun vs. apple....
  • Next by thread: Re: C++ mixed with Cocoa
  • Index(es):
    • Date
    • Thread