• 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: Trying to compile an ObjectiveC and C++ program in XCode 3.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1


  • Subject: Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
  • From: Randy Bradley <email@hidden>
  • Date: Thu, 11 Sep 2008 16:15:41 -0500
  • Thread-topic: Trying to compile an ObjectiveC and C++ program in XCode 3.1

>
The ³.mm² extension is required for source that contains both C++ and
Objective-C, thus called Objective-C++.  Not required for pure C++ source.

A couple ideas:

1. Be sure to add the C++ source files to your target.  (ie, look for the
checkmark in the target column)
2. Any objective-c source that creates C++ declared objects also must have
the ³.mm² extension and must include the C++ header files.

>
>
> I'm relatively new programming ObjectiveC and Cocoa, and I'm trying to add
> some C++ code to my existing ObjectiveC/Cocoa code using Xcode 3.1. I have my
> C++ files in a separate .mm files (as the documentation says to), and my C++
> headers are in a xxx.h file. When building the code, I keep  getting my C++
> 'class' and everything associated with it as undefines.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
      • From: Robert Douglas <email@hidden>
  • Prev by Date: RE: How do I identify Myself within AddressBook Progammatically?
  • Next by Date: Re: NSXMLParser bug?
  • Previous by thread: Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
  • Next by thread: Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
  • Index(es):
    • Date
    • Thread