我正在尝试在 Windows 10 上安装 boost 库。我安装了 VS2017。我打开 Developer Command Prompt 2017,我已经输入了boostrap
,现在在编写b2
时,我收到以下错误:
C:\Program Files\boost\boost_1_60_0>b2
C:/Program Files/boost/boost_1_60_0/tools/build/src/tools\msvc.jam:1072: in configure-really
*** argument error
* rule generate-setup-cmd ( version : command : parent : options * : cpu : global-setup : default-global-setup-options : default-setup )
* called with: ( default : C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx86\x86 : C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx86 : : i386 : : x86 : vcvars32.bat )
* missing argument global-setup
C:/Program Files/boost/boost_1_60_0/tools/build/src/tools\msvc.jam:798:see definition of rule 'generate-setup-cmd' being called
C:/Program Files/boost/boost_1_60_0/tools/build/src/tools\msvc.jam:201: in configure
C:/Program Files/boost/boost_1_60_0/tools/build/src/tools\msvc.jam:153: in msvc.init
C:/Program Files/boost/boost_1_60_0/tools/build/src/build\toolset.jam:43: in toolset.using
C:/Program Files/boost/boost_1_60_0/tools/build/src/build\project.jam:1052: in using
project-config.jam:3: in modules.load
C:/Program Files/boost/boost_1_60_0/tools/build/src\build-system.jam:249: in load-config
C:/Program Files/boost/boost_1_60_0/tools/build/src\build-system.jam:412: in load-configuration-files
C:/Program Files/boost/boost_1_60_0/tools/build/src\build-system.jam:524: in load
C:\Program Files\boost\boost_1_60_0\tools\build\src/kernel\modules.jam:295: in import
C:\Program Files\boost\boost_1_60_0\tools\build\src/kernel/bootstrap.jam:139: in boost-build
C:\Program Files\boost\boost_1_60_0\boost-build.jam:17: in module scope
我不知道如何解决这个问题。