如何使用MinGW构建提升1.55? [英] How to build boost 1.55 with MINGW?
问题描述
我已经下载了提升1.55和MinGW。
控制台回答我,我没有任何命令。
我不明白如何绑定2路和激活gcc编译器。
附:如果我建立加强与微软编译器,我将有错误3861 !!结果约8失误
如何建立呢?
I have downloaded boost 1.55 and MinGW.
Console answers me that I haven't any command.
I can't understand how to bind 2 path and activate gcc compiler.
P.S. If I build boost with Microsoft Compiler I will have about 8 mistakes with error 3861!!
How can I build it?
推荐答案
首先确保你的MinGW的bin目录在您的环境 PATH
所以 GCC
和 G ++
从命令提示符调用。随后进入您解压缩文件的升压转换器的根目录下。
First make sure your mingw's bin directory is in your environment PATH
so gcc
and g++
is callable from your command prompt. Afterwards go into your boost's root directory of where you extracted the files.
请遵照自举+ b2.exe建设。例如,假设你只想编译提振正则表达式部分。后续的命令应该做的伎俩:
Follow that with a bootstrap + b2.exe to build. For example, let's say you only want to compile the regex portion of boost. The follow commands should do the trick:
bootstrap mingw
b2 toolset=gcc regex
您可以使用:
b2 --show-libraries
让你可以单独构建模块列表。当然你也可以建立所有这些只用:
to get a listing of modules you can build individually. Of course you can build all of them with just:
b2 toolset=gcc
查看升压调用获得可用选项的详细列表
Check out Boost Invocation for a detailed list of available options.
这篇关于如何使用MinGW构建提升1.55?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!