Boost logo

Boost Users :

Subject: Re: [Boost-users] Cutting headers
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2017-05-09 17:23:26


On 09/05/2017 17:14, Robert Ramey via Boost-users wrote:
> On 5/8/17 10:44 PM, Igor Mironchik via Boost-users wrote:
>> Hello,
>>
>> How can I cut specific library from Boost, if, for example, I don't want
>> to place all Boost but only one library from Boost?
>>
>> Is it possible?
>>
>
> I do this all the time. I just import specific headers and link to the
> particular libraries.
>
> The only issue that arises is that some boost libraries use other boost
> libraries so I have to add some other headers/libraries to the
> application working set. We have tools for determining these secondary
> dependencies but for some specific technical reasons they aren't
> perfect. I just work out the dependencies by hand. It's a simple one
> time procedure that just consists in building the app adding missing
> pieces until it builds to completion.

A faster way could be to use https://pypi.python.org/pypi/pcpp to
partially preprocess a Boost library and all its dependent headers into
a single, self contained include file.

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net