Re: Using #define's in .m files
Re: Using #define's in .m files
- Subject: Re: Using #define's in .m files
- From: Steve Mills <email@hidden>
- Date: Fri, 1 Sep 2006 14:02:02 -0500
On Sep 1, 2006, at 13:34, Shawn Erickson wrote:
Do you include the header in your pch only for C++ code? (is it
wrapped by a check for c++).
Remember .m files are objective-c (C based) so C++ code isn't
supported in files of that type (at least as compile using defaults).
If you want C++ capabilities use objective-c++ (.mm).
Thanks, that helped. It wasn't being included in a place that doesn't
have any __cplusplus checks around it, but was later included in a
place that *was* in a __cplusplus block. Our all the various
framework and portable files included in our pch for this app can
cause a lot of confusion for the reader. :) And I even attempt to
clean and simplify it from time to time.
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden