我正在尝试从 Boost 中提取“正是我需要的”以减少签入足迹。到目前为止,我正在执行以下操作:
bootstrap.bat
b2 tools/bcp
md extract
dist\bin\bcp boost/thread.hpp boost/shared_ptr.hpp boost/enable_shared_from_this.hpp boost/asio.hpp boost/thread/thread.hpp boost/bind.hpp boost/thread/lock_types.hpp boost/thread/condition_variable.hpp .\extract
cd extract
..\b2
但这给了我一个错误:
boostcpp.jam: No such file or directory
link.jam: No such file or directory
Jamroot:137: in modules.load
ERROR: rule "boostcpp.set-version" unknown in module "Jamfile<C:\temp\boost_1_55_0\extract>".
C:/temp/boost_1_55_0/tools/build/v2/build\project.jam:311: in load-jamfile
C:/temp/boost_1_55_0/tools/build/v2/build\project.jam:64: in load
C:/temp/boost_1_55_0/tools/build/v2/build\project.jam:145: in project.find
C:/temp/boost_1_55_0/tools/build/v2\build-system.jam:535: in load
C:\temp\boost_1_55_0\tools\build\v2/kernel\modules.jam:289: in import
C:\temp\boost_1_55_0\tools\build\v2/kernel/bootstrap.jam:139: in boost-build
C:\temp\boost_1_55_0\boost-build.jam:17: in module scope
我究竟做错了什么?编译提取的子库的正确方法是什么?