I am using boost in a project and I want to create a librarie which include the boost interprocess librarie that I use in my project. I have got, using the boost tool bcp, the interprocess sources separate from all the boost code, But what I want to c开发者_如何学运维reate a lib from that sources. Or maybe somebody know how to create a .lib from Boost libraries.
Thanks in advance!
As far as I understand the bcp tool, it is used to extract a subset of the sources from the boost tree. I'm not sure if the extracted sources can be built using bjam, but have you tried?
On how to build boost, simply have a look at their Getting Started Guide For Windows:
http://www.boost.org/doc/libs/release/more/getting_started/windows.html#or-build-binaries-from-source
You do not build boost libraries directly from Visual Studio, but rather use the bjam
tool that will invoke Visual Studio for you to generate the binaries.
Oh, and regarding Boost.Interprocess:
There is no need to compile Boost.Interprocess, since it's a header only library. Just include your Boost header directory in your compiler include path.
You cannot create a lib for Boost.Interprocess, because it is a header-only library.
精彩评论