• 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: Adding obj-c++ file to carbon project changes preprocessed header file types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Adding obj-c++ file to carbon project changes preprocessed header file types
      • From: Jens Alfke <email@hidden>
References: 
 >Re: Adding obj-c++ file to carbon project changes preprocessed header file types (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Mail-like grouping in NSTableView?
  • Next by Date: Re: Mail-like grouping in NSTableView?
  • Previous by thread: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • Next by thread: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • Index(es):
    • Date
    • Thread