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.
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 gcc
b2 toolset=gcc regex
You can use:
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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…