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

Re: Mixing C++ with Objective-C


  • Subject: Re: Mixing C++ with Objective-C
  • From: Shawn Erickson <email@hidden>
  • Date: Fri, 20 Jan 2006 11:50:43 -0800

On 1/20/06, email@hidden <email@hidden> wrote:
> When mixing C++ with Objective-C in a single project, is there ever a time
> the suffix for C++ is used or all source files must use the Objective-C suffix
> (.mm)

All files that contain objective-c/c++ code in them must end in ".mm"
to get the compiler called in the correct way. All other C++ files
that don't contain any objective-c can end in ".cpp" (or a few other
standard suffixes). Similarly any files that contain only objective-c
can end in ".m".

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mixing C++ with Objective-C
      • From: Shawn Erickson <email@hidden>
References: 
 >Mixing C++ with Objective-C (From: email@hidden)

  • Prev by Date: Re: NSApplication terminate: behavior
  • Next by Date: Re: Mixing C++ with Objective-C
  • Previous by thread: Mixing C++ with Objective-C
  • Next by thread: Re: Mixing C++ with Objective-C
  • Index(es):
    • Date
    • Thread