Re: Headers in folder references
Re: Headers in folder references
- Subject: Re: Headers in folder references
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 30 Jul 2012 12:31:12 +0200
Le 30 juil. 2012 à 12:18, Andreas Grosam <email@hidden> a écrit :
>
> On 30.07.2012, at 11:13, Rick Mann wrote:
>
>> Yep, knew that, too. But what still seems to be the case is that it only does that for header files added to the project directly, rather than in folder references.
> It seems that there needs to be a file reference to that header file. If that file does not exist (yet), Xcode may not create a header search path for the header map. But I've never found a precise documentation about header maps. There are only some vague statements in the documentation about header files, and none about header maps.
>
>
>> Seems to me it should do it for both. Not sure if that's a bug or feature, or if there's a way to tell it to include those folders in the search paths.
> It's difficult to tell, since the header maps are encoded in some binary format - and since they are not documented.
If you want to play with header map, the best documentation it probably the clang implementation:
http://clang.llvm.org/doxygen/HeaderMap_8h_source.html
and
http://clang.llvm.org/doxygen/HeaderMap_8cpp_source.html
>> I generally dislike having to set the build setting.
> You better should not dislike it :) In fact, this is the method to get your header path issues solved. Otherwise, your headers seem to appear in a flat namespace - calls for trouble in a more complex project.
>
> For what's worth, the header map feature is not helpful, especially in more complex projects with a more complex folder hierarchy where your sources reside. I prefer to setup header search paths manually - and I never had troubles with headers - except in cases where there was a bug in header maps (years ago) - which could finally be workaround by disabling the feature with an undocumented build setting.
>
> Andreas
>
>
> _______________________________________________
> 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
-- Jean-Daniel
_______________________________________________
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