• 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 file confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Header file confusion


  • Subject: Re: Header file confusion
  • From: Scott Tooker <email@hidden>
  • Date: Wed, 8 Mar 2006 21:12:57 -0800

We add all header files in the project to the headermap file (the "mysterious" hmap file) and that is used when finding headers. One simple step is to remove the offending header from the project and then try a clean rebuild to see if the proper headers are found.

Scott


On Mar 7, 2006, at 9:58 AM, Jerry wrote:

I have a project which contains two header files with the same name but in different folders like this:

	Source/foo.h
	Source/Blah/foo.h
	Source/Foo/(source_files.c}

The include files paths include "Source" (non-recursive), but not Source/Blah, but some, and only some, C files from Source/Foo which #include "foo.h" are reading Source/Blah/foo.h instead of Source/ foo.h and so won't compile. Looking at the build transcript, Source/ Blah doesn't appear in any -I compiler options, but there's a mysterious ".hmap" file which appears in the first -I option, and I suspect this might be something to do with the problem. Does anyone have any ideas of how to solve, or even to debug this problem?- I've tried cleaning the project, restarting, removing all #includes from my precompiled headers to no avail.

Jerry



_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Header file confusion
      • From: Jerry <email@hidden>
References: 
 >Header file confusion (From: Jerry <email@hidden>)

  • Prev by Date: Re: ranlib
  • Next by Date: Re: XCode auto-creates Japanese.lproj?
  • Previous by thread: Header file confusion
  • Next by thread: Re: Header file confusion
  • Index(es):
    • Date
    • Thread