On Sat, Jul 28, 2012 at 10:17 PM, Michael Chisholm <chisholm@mitre.org> wrote:
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



I don't have an installer, just a fairly simple Makefile to build the executable from my source code. So I'd like to just add the appropriate targets to the Makefile to compile&link whatever I need to from Boost. I don't want my users to have to 'apt-get install' anything else...   Am I wrong?

Thx