简体   繁体   English

用MinGW增强性能会带来“参数错误”

[英]Building boost with MinGW gives “argument error”

I am trying to build boost with MinGW and have downloaded boost 1.45 and bjam Version 3.1.18. OS=NT 我正在尝试使用MinGW构建boost,并下载了boost 1.45bjam Version 3.1.18. OS=NT bjam Version 3.1.18. OS=NT

After cd'ing into the root of boost, I try to compile it with bjam toolset=gcc --build-type=complete stage which doesn't work. 进入boost的根目录后,我尝试使用bjam toolset=gcc --build-type=complete stage进行编译,但无法正常工作。 This is the start of the error messages that are returned: 这是返回的错误消息的开始:

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

I'd appreciate any hint as to why I am getting these errors. 对于我为什么会收到这些错误的任何提示,我将不胜感激。

The following link might be helpful, it appears to be the same problem: 以下链接可能有帮助,它似乎是相同的问题:

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

To summarise: you must use the bjam version included with boost 1.45 . 总结一下:您必须使用boost 1.45附带bjam版本

And: 和:

Still, isn't it wrong that the bjam build linked directly above the 1.45 download link can't build 1.45? 仍然,直接在1.45下载链接上方链接的bjam构建不能构建1.45是不是错误的?

According to that link, don't use the Boost Jam link on the Boost downloads page. 根据该链接,请勿使用Boost下载页面上的Boost Jam链接。 (Ie the version you have) (即您拥有的版本)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM