c++boostboost-uuid

How to compile specific Boost libraries to a DLL


I am trying to embed the boost uuid package in my project. For ease we would like to just include some DLLs, as we do with most libraries we use. I can't figure out how to get just the DLLs for the uuid package (and any necessary dependencies). I have tried building normally, b2, bcp, and anything else I can find but all I get are copies of the source or DLLs for many of the libraries but not uuid, which is the only one I need.

In case it makes a difference, this is for a windows application. We have lots of different developers with different environments and would really just like something (like a DLL but I'm open to other options) that we can include in our source control so everyone doesn't have to install boost and set it up the same way. Ideally we would also like just boost/uuid and any dependencies, not the whole gigantic library.


Solution

  • Boost uuid, like many boost libraries, is header-only: you can't find any dll because there is no dll for this library. Just copy and include the headers where you need them.

    See the documentation.

    BCP can be used to extract uuid and its dependencies.