Header files

  • How do header file maps (.hmap) work? I'm using Boost, which has many header files. I'm hoping I can speed things up by including only the subset of headers I use in my project, but currently, to get Xcode to see the Boost headers, I have to add the boost parent directory to the header search paths setting (which means it's going to look through all that anyway).

    I thought that a header file added to Xcode got included in the generated .hmap files, but it didn't seem to find it. Now, Boost includes with fairly deep paths sometimes (e.g. #include "boost/foo/bar/baz.hpp"), so maybe .hmap only works for filename-only include directives?

    --
    Rick
  • Hi Rick,

    It is entirely feasible to "header-only" compile with boost in Xcode projects, for the libraries which support it.
    Make sure your 'User Header Search Paths' is set to the boost parent-folder (e.g. boost_1_53_0/) with the 'non-recursive' flag set, and that the 'Always Search User Paths' is set.
    In general, use the most current release of boost.

    Mikkel

    On 10 May 2013, at 02:57, Rick Mann wrote:

    > How do header file maps (.hmap) work? I'm using Boost, which has many header files. I'm hoping I can speed things up by including only the subset of headers I use in my project, but currently, to get Xcode to see the Boost headers, I have to add the boost parent directory to the header search paths setting (which means it's going to look through all that anyway).
    >
    > I thought that a header file added to Xcode got included in the generated .hmap files, but it didn't seem to find it. Now, Boost includes with fairly deep paths sometimes (e.g. #include "boost/foo/bar/baz.hpp"), so maybe .hmap only works for filename-only include directives?
    >
    >
    > --
    > Rick
    >
    >
    >
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Xcode-users mailing list      (<Xcode-users...>)
    > Help/Unsubscribe/Update your Subscription:
    > https://lists.apple.com/mailman/options/xcode-users/<my.inputstream...>
    mail.com

    >
    > This email sent to <my.inputstream...>
  • Yeah, I'm already doing that, although Boost (annoyingly) uses angle brackets internally, so I have to either check "Always Search User Paths" or add the Boost directory to the system header search paths.

    What I want to do is NOT add those directories to the search. I want Xcode to build the explicit list of headers in the .hmaps because they're included in the project. That doesn't seem to be working (perhaps because of the angle brackets).

    On May 9, 2013, at 23:09 , Mikkel Islay <my.inputstream...> wrote:

    > Hi Rick,
    >
    > It is entirely feasible to "header-only" compile with boost in Xcode projects, for the libraries which support it.
    > Make sure your 'User Header Search Paths' is set to the boost parent-folder (e.g. boost_1_53_0/) with the 'non-recursive' flag set, and that the 'Always Search User Paths' is set.
    > In general, use the most current release of boost.
    >
    > Mikkel
    >
    > On 10 May 2013, at 02:57, Rick Mann wrote:
    >
    >> How do header file maps (.hmap) work? I'm using Boost, which has many header files. I'm hoping I can speed things up by including only the subset of headers I use in my project, but currently, to get Xcode to see the Boost headers, I have to add the boost parent directory to the header search paths setting (which means it's going to look through all that anyway).
    >>
    >> I thought that a header file added to Xcode got included in the generated .hmap files, but it didn't seem to find it. Now, Boost includes with fairly deep paths sometimes (e.g. #include "boost/foo/bar/baz.hpp"), so maybe .hmap only works for filename-only include directives?
    >>
    >>
    >> --
    >> Rick
    >>
    >>
    >>
    >>
    >> _______________________________________________
    >> Do not post admin requests to the list. They will be ignored.
    >> Xcode-users mailing list      (<Xcode-users...>)
    >> Help/Unsubscribe/Update your Subscription:
    >> https://lists.apple.com/mailman/options/xcode-users/<my.inputstream...>
    mail.com

    >>
    >> This email sent to <my.inputstream...>
    >

    --
    Rick
previous month may 2013 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today