• 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: How to attach headers to targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to attach headers to targets


  • Subject: Re: How to attach headers to targets
  • From: Andreas Grosam <email@hidden>
  • Date: Sat, 23 Jul 2005 18:21:41 +0200

On 22.07.2005, at 18:07, Chris Espinosa wrote:

On Jul 22, 2005, at 5:14 AM, Andreas Grosam wrote:

how can i attach header files in XCode 2.1 to a target, without using a CopyFiles or CopyHeaders build phase?

The reason is, if there is no target attached to a header file, the header can't be preprocessed nor can it be compiled explicitly per command. Simply, because the commands are disabled (probably, due to the lack of any build setting information).

But preprocessing and compiling is often usefull for testing syntax or getting more information how macros exand.

Note, in XCode 1.5 there was the "Headers Build Phase", which does not exist anymore on my XCode 2.1.


THis wouldn't work anyway. As far as I can tell, Preprocess, Show Assembly Code, and Compile don't work for anything but C/C++/Objective-C source files. Please file a bug.


Don“t assume, there is always a corresponding cpp module for each header (e.g. files using C++ templates).
IMO, Preprocess should work with headers as well, without any problems.


Is there a reason to disallow Compile?

A "Check Syntax" Command, might be very cool, also.

Can we please elaborate a bit more on this, to figure out how it should work. Then i'll send either a bug report or a feature request.


Thanks Andreas

Chris

_______________________________________________ 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
References: 
 >How to attach headers to targets (From: Andreas Grosam <email@hidden>)
 >Re: How to attach headers to targets (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Cross development, can't include <string> on 10.2.8
  • Next by Date: Cannot load old XCode projects into XCode 2.0 on Tiger
  • Previous by thread: Re: How to attach headers to targets
  • Next by thread: Newbie ?: OTHER_CFLAGS and "unrecognized -fno-coalesce" trying open-source build
  • Index(es):
    • Date
    • Thread