Boost logo

Boost Users :

Subject: Re: [Boost-users] Help needed with Boost header only libraries
From: Lars Viklund (zao_at_[hidden])
Date: 2011-05-23 15:09:48


On Mon, May 23, 2011 at 07:02:45PM +0200, Ovanes Markarian wrote:
> On Mon, May 23, 2011 at 1:52 PM, Lars Viklund <zao_at_[hidden]> wrote:
>
> > On Mon, May 23, 2011 at 09:01:15AM +0200, Ovanes Markarian wrote:
> > > Hi Vikash,
> > >
> > > please use BCP tool to extract the needed libs:
> > > http://www.boost.org/doc/libs/1_46_1/tools/bcp/doc/html/index.html
> > >
> > > On Mon, May 23, 2011 at 7:31 AM, vikash sharma <vikashsharma12_at_[hidden]
> > >wrote:
> > >
> > > > Hi,
> > > >
> > > > Could anyone please help me out. I need boost header only libraries for
> > > > boost shared pointer and boost foreach.
> > > > But i am not able to find the header libraries available for download
> > any
> > > > where on the boost website.
> > > > I remember seeing the header only libraries some time back. But right
> > now
> > > > dont see the header only libraries for any of the boost versions
> > released
> > > > till date.
> >
> > Hello (and do not top-post).
> >
> > If you just need the headers, just copy/use the boost/ directory of the
> > releases.
> >
> > BCP is a nice tool in theory, but doesn't do the extraction correctly
> > for some of the libraries.
> >
> > It _might_ work for you, but be aware that it tends to fail horribly on
> > anything that uses the preprocessor. It has failed miserably on MPL for
> > some.
>
>
> Sorry for top-posting... Forgot it.. But anyway, copying the directory might
> fail as well, just because this particular header lib might depend on other
> libs. In that case you will need to strip the dependencies manually.

You read me wrong. I said to copy the boost/ directory as a whole.

Then of course, if you feel brave, you can always remove libraries that
you know it will not depend on.

Personally, I do not see the need to extract single libraries, as the
cost (hours/days of work, which may blow up) way outweighs the benefits
(what, saving a couple of megs of disk space?).

-- 
Lars Viklund | zao_at_[hidden]

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