1

我正在尝试按照此文档使用 MSVC 构建 Boost.Python 。

我正在使用 Windows 10 x64、Visual Studio 2017 和 Boost 1.73

我运行 bootstrap 和 .\b2 没有错误,但是当我调用 bjam 时,我得到以下信息:

C:\Program Files\boost_1_73_0\boost_1_73_0>bjam --toolset=mscv "--prefix=C:\Program Files\boost_1_73_0\boost_1_73_0" install
warning: mismatched versions of B2 engine and core
warning: B2 engine (bjam) is 2015.07.00
warning: B2 core (at /cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src) is 4.2-git
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/tools/msvc.jam:975: in auto-detect-toolset-versions
ERROR: rule "W32_GETREG" unknown in module "msvc".
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/tools/msvc.jam:2088: in load
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/kernel/modules.jam:295: in import
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/build/toolset.jam:42: in toolset.using
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/build/project.jam:1104: in using
project-config.jam:6: in modules.load
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/build-system.jam:255: in load-config
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/build-system.jam:486: in load-configuration-files
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/build-system.jam:607: in load
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/kernel/modules.jam:295: in import
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/tools/build/src/kernel/bootstrap.jam:139: in boost-build
/cygdrive/c/Program Files/boost_1_73_0/boost_1_73_0/boost-build.jam:17: in module scope

知道如何解决这个问题吗?

4

0 回答 0