• 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: to include a C++ class in proj
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: to include a C++ class in proj


  • Subject: Re: to include a C++ class in proj
  • From: Brady Duga <email@hidden>
  • Date: Thu, 27 Mar 2008 07:16:58 -0700


On Mar 27, 2008, at 7:05 AM, Nick Rogers wrote:

hi,
the semicolon is there. i've changed extension to .hh and .mm, still the same error.

What file did you change to .mm, the header or the source file? Remember, header files are not compiled (well, generally not), they are included in implementation files by the preprocessor, then that gets compiled. The file(s) that include your header must be compiled as C++ or Objective-C++. Try changing the extension of the source file(s) that include your class to .mm. There is no need to call the header file .hh.


--Brady

_______________________________________________

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


References: 
 >to include a C++ class in proj (From: Nick Rogers <email@hidden>)
 >Re: to include a C++ class in proj (From: Jens Miltner <email@hidden>)
 >Re: to include a C++ class in proj (From: Nick Rogers <email@hidden>)

  • Prev by Date: Re: Programmatically invoking Exposé?
  • Next by Date: Re: Writing a preference pane that configures hotkeys?
  • Previous by thread: Re: to include a C++ class in proj
  • Next by thread: Re: to include a C++ class in proj
  • Index(es):
    • Date
    • Thread