Boost logo

Boost Users :

Subject: [Boost-users] [test] Is standalone use possible?
From: Adam Nielsen (a.nielsen_at_[hidden])
Date: 2017-10-01 21:54:26

Hi all,

I'm in the process of trying to remove the Boost dependency from my
project, as it is causing too many difficulties for non-developers
trying to run my code.

This has been mostly solved by switching to C++11 and using the std::
implementations instead, however rather than rewrite all my unit tests
I am hoping I can use a standalone version of Boost.Test, and
distribute the code alongside my own.

Unfortunately I am not quite sure how to extract the Test library out
of the main Boost distribution. I have compiled "bcp" and used it to
copy "test" into a new folder, but it seems to copy a huge chunk of
Boost as well, including a bunch of libraries (system, thread,
date_time, etc.) and I end up with 29 MB of source files, which seems
wrong (especially considering my own codebase is barely 500 kB).

Am I doing something wrong? I was hoping to use the header-only
version of Boost.Test and this does seem to work when I #include the
system-wide version of Boost (and don't link to any libraries), so it
would seem that I don't need all those libraries that bcp copies.

Is there any other way to access a slimmed-down standalone version of

Many thanks,

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at