【问题标题】:Building boost with MinGW gives "argument error"使用 MinGW 构建提升会产生“参数错误”
【发布时间】:2011-02-15 22:11:03
【问题描述】:

我正在尝试使用 MinGW 构建 boost 并下载了 boost 1.45bjam Version 3.1.18. OS=NT

在进入 boost 的根目录后,我尝试用 bjam toolset=gcc --build-type=complete stage 编译它,但它不起作用。这是返回的错误消息的开始:

C:\boost\boost_1_45_0>bjam toolset=gcc --build-type=complete  stage
C:/boost/boost_1_45_0/tools/build/v2/build\configure.jam:145: in builds-raw
*** argument error
* rule UPDATE_NOW ( targets * : log ? : ignore-minus-n ? )
* called with: ( <pbin.v2\libs\regex\build\gcc-mingw-4.5.2\debug>has_icu.exe :  : ignore-minus-n : ignore-minus-q )
* extra argument ignore-minus-q
(builtin):see definition of rule 'UPDATE_NOW' being called
C:/boost/boost_1_45_0/tools/build/v2/build\configure.jam:179: in configure.builds
C:/boost/boost_1_45_0/tools/build/v2/build\configure.jam:216: in object(check-target-builds-worker)@410.check

---------- deleted 27 lines ---------

Jamroot:648: in build-multiple
Jamroot:634: in object(top-level-target)@96.generate
C:/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really
C:/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@628.generate
C:/boost/boost_1_45_0/tools/build/v2\build-system.jam:735: in load
C:\boost\boost_1_45_0\tools\build\v2/kernel\modules.jam:283: in import
C:\boost\boost_1_45_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build
C:\boost\boost_1_45_0\boost-build.jam:17: in module scope

如果我得到这些错误的任何提示,我将不胜感激。

【问题讨论】:

  • 为什么那个程序对使用 / 或 \ 如此困惑。

标签: c++ boost mingw


【解决方案1】:

以下链接可能会有所帮助,它似乎是同样的问题:

http://comments.gmane.org/gmane.comp.lib.boost.user/64146

总而言之:您必须使用 boost 1.45 中包含的 bjam 版本

还有:

不过,bjam 构建链接是不是错了 1.45下载链接正上方不能编译1.45?

根据该链接,请勿使用 Boost 下载页面上的 Boost Jam 链接。 (即你拥有的版本)

【讨论】:

  • 真的吗?我看到更多问题即将到来:-)
  • 是的,我能够构建 bjam,然后构建 boost。谢谢指点。
猜你喜欢
  • 2018-09-12
  • 1970-01-01
  • 1970-01-01
  • 2020-12-30
  • 1970-01-01
  • 1970-01-01
  • 2017-11-15
  • 1970-01-01
  • 2022-08-07
相关资源
最近更新 更多