• 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: Mixing C++ and Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing C++ and Objective-C


  • Subject: Re: Mixing C++ and Objective-C
  • From: Martin Häcker <email@hidden>
  • Date: Tue, 6 Aug 2002 17:07:50 +0200

At 16:48 Uhr +0200 06.08.2002, Albert Russel wrote:
I have added some .h and .cpp files to a Cocoa project. When I #include a
C++ .h file the compiler complains that 'class' is an unknown type. From the
documentation I understood that Objective-C and C++ can be mixed in the same
project. What must I do to use the C++ STL in a Cocoa project?

As far as I know you have to name your Obj-C files with an extension of ".mm"

cu Martin
--
dont.wanna.tell
[ot]coder - hehe
_______________________________________________
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: 
 >Mixing C++ and Objective-C (From: "Albert Russel" <email@hidden>)

  • Prev by Date: Re: Mixing C++ and Objective-C
  • Next by Date: Re: Accessor methods and (auto)release: conclusion
  • Previous by thread: Re: Mixing C++ and Objective-C
  • Next by thread: NSArray valueForKey:
  • Index(es):
    • Date
    • Thread