Re: to include a C++ class in proj
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