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: Russ <email@hidden>
- Date: Wed, 13 Feb 2008 08:24:49 -0800 (PST)
> 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
That only works for the top level. When you have a #include "foo.h" the include
path determines what file it resolves to. If the same file name is used in
cocoa and c++ --- but must resolve to different paths --- there is a problem.
I'd like to be able to set up a set of include paths that is used from obj-c
sources and a different set of paths for the c++ sources. It's fine for the
compiler, no problem there, but XCode doesn't seem to give you a way to set it
up.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
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