As Fiber is not yet officially part of Boost, it is necessary to embed it in an existing Boost source tree.
Fiber library can be placed into an existing Boost source tree by moving
the top-level Fiber directory to
the top-level Boost directory, then further moving
(in other words, the Fiber library's
include/boost/fiber directory) to
the top-level Boost directory.
On a Posix system such as Linux or OS X, you may use symlinks instead.
Create a symlink from the Boost directory's
the top-level Fiber directory, e.g.:
cd ~/boost_1_61_0 ln -s ~/boost-fiber-master libs/fiber
Then create a symlink from the Boost directory's
the Fiber library's
cd boost ln -s ../libs/fiber/include/boost/fiber fiber
For some versions of the Boost.Build system, it was important to use a relative
symlink of that form for
Once the Fiber library has been overlaid (or symlinked) into the Boost source tree this way, the Boost.Build system can build it like any other Boost library. In particular:
cd ~/boost_1_61_0 ./bootstrap.sh ./b2 libs/fiber/test
On Windows, the commands would look more like:
cd /D %HOMEDRIVE%%HOMEPATH%\boost_1_61_0 bootstrap b2 libs\fiber\test