Boost logo

Boost Users :

Subject: Re: [Boost-users] Can I copy/paste Boost source code and compile directly into my application?
From: Michael Chisholm (chisholm_at_[hidden])
Date: 2012-07-28 22:17:41


On 7/28/2012 3:56 PM, Fred wrote:
> Dear Boosters,
>
> I would like to use the Boost/regex library in my application,
> but I don't want my users to have to install Boost.
> My preference would be to copy a minimal set
> of Boost .hpp and .cpp files into a sub-directory
> of my application and then
> compile and link the boost/regex stuff
> in the same way as the rest of my
> application.
>
> Note that the regex library is not a header-only library.
>
> So, is there a reasonably straight-forward
> and well-accepted procedure to do this?
>
> Apologies if this topic has already been covered,
> but I can't seem to get a hit.
>
> Many thanks,
>
> Fred
>

I guess I don't understand the concern. Does your app require your
users to install source code? Or are you talking about binaries? Most
installers include all required dependencies; it's pretty rare to
require users to pre-install something else before installing your app.
  Is there some reason you don't want to bundle it all together? Do you
just want your app to consist of a single executable, so you don't have
to distribute DLLs/so's? If so, why not just statically link the libraries?

Andy


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