Re: Adding obj-c++ file to carbon project changes preprocessed header file types
Re: Adding obj-c++ file to carbon project changes preprocessed header file types
- Subject: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
- From: Jens Alfke <email@hidden>
- Date: Tue, 12 Feb 2008 23:03:39 -0800
On 12 Feb '08, at 10:06 PM, Russ wrote:
I eventually had to set up a separate library to contain the snippet
of Cocoa
code I need, even after adding the requisite ifdefs. I couldn't
figure out how
to set up a completely separate set of include paths for the cocoa
and c++ code
within one project; there's a lot of nested-include clashing
otherwise.
Unless I'm misunderstanding, it should just mean setting up the prefix
file/precompiled header as something like:
#ifdef __cplusplus
#include "cplusplusstuff.h"
#endif
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
—Jens_______________________________________________
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