• 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: Jerry <email@hidden>
  • Date: Thu, 9 Mar 2006 08:36:06 +0000

Hi,

That sort of works: The offending header is not actually in the project (so I can't remove it), but is included by some files in it. If I temporarily rename the header and do a clean build, then rename it back and build again to compile all the files which do actually use the header I can get the app to build, but the same problem reoccurs after some time, usually just when I need to get it built in a hurry. Ideally, I'd rename the file permanently but unfortunately Visual Studio requires the fixed name and will go bananas if I do.

The strange thing about the problem is that other files in the same folder manage include the correct header, and it's always the same ones which go wrong. Is there any way to debug the process of building the hmap file to try and work out what's going on?

Thanks,

Jerry

On 9 Mar 2006, at 05:12, Scott Tooker wrote:

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:
40huxtable.com


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: Scott Tooker <email@hidden>
References: 
 >Header file confusion (From: Jerry <email@hidden>)
 >Re: Header file confusion (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: Why can't my X-Code find this file
  • Next by Date: Undefined values in link...
  • Previous by thread: Re: Header file confusion
  • Next by thread: Re: Header file confusion
  • Index(es):
    • Date
    • Thread