• 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: Header Search Paths / Multiple Header Files with the same name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Header Search Paths / Multiple Header Files with the same name


  • Subject: Re: Header Search Paths / Multiple Header Files with the same name
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 14 Jul 2006 16:53:24 -0700


On Jul 14, 2006, at 1:39 PM, Stuart A. Malone wrote:

I know of two ways of dealing with this:

- Rename one of the headers to have a distinctive name.

This works, of course, but there are many situations where it is undesirable.



- Distinguish the header files by partial path, as in:

		#include "Parser/File_a.h"
		#include "Conduit/File_a.h"

This is really the best way to do it since it completely disambiguates the header file unless you happen to have multiple search paths that contain Parser/File_a.h (in which case you just need to go back a level "foo/Parser/File_a.h" and "bar/Parser/File_a.h".


On Jul 14, 2006, at 1:53 PM, Aaron Kobayashi wrote:

I was afraid that might be the case. I'm hoping someone else has some brilliant idea that I'm missing, but I fear you are correct. I just dread having to make changes to all those files as well as cause others on the team to have to make changes to their settings.

Setting search paths is brittle anyway. There are too many places where this can be done. Changing the #included files is much better. If you know which files should be including from the directory "Parser", then just use sed or perl to convert your paths: s,#include +"File_a.h",#include "Parser/File_a.h",


--
Steve Checkoway



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Header Search Paths / Multiple Header Files with the same name (From: Aaron Kobayashi <email@hidden>)
 >Re: Header Search Paths / Multiple Header Files with the same name (From: "Stuart A. Malone" <email@hidden>)

  • Prev by Date: Re: Alignment in structs
  • Next by Date: Re: Alignment in structs
  • Previous by thread: Re: Header Search Paths / Multiple Header Files with the same name
  • Next by thread: Re: Header Search Paths / Multiple Header Files with the same name
  • Index(es):
    • Date
    • Thread