windows compile bootst

When compiling boost library reference online article under Windows: https://blog.csdn.net/zengraoli/article/details/70187556 if a fault occurs, the original is in accordance with article bloggers compile time, before performing the first run bjam stage b2 .exe.
compiling a 32-bit boost library
Download and unzip boost, use VS in the current directory 32-bit command-line tools:
VS32-bit command-line tool
① run bootstrap.bat
b2.exe file in the source directory ② run boost, generating / stage / lib
③ to perform operations to boost compile
(msvc version 14.1 corresponds vs2017, -stagedir is compiled after the designated storage directory, article supplemented with vs corresponding version number)

bjam stage --toolset=msvc-14.1 architecture=x86 address-model=32 --without-graph --without-graph_parallel --stagedir="J:\boost_1_67_0\bin\vc15_64" link=static runtime-link=shared runtime-link=static threading=multi debug release

Thus obtained is 32-bit libraries
compiled 64 of the boost libraries
open vs 64-bit command-line tool
VS64-bit command-line tool

① bootstrap.bat run in the boost source folder
b2.exe file in the source directory ② boost operation, generates / Stage / lib
③ to perform operations, be compiled to boost
(MSVC version 14.1 corresponds vs2017, -stagedir designated after compiling a directory stored)

bjam stage --toolset=msvc-14.1 architecture=x86 address-model=64 --without-graph --without-graph_parallel --stagedir="J:\boost_1_67_0\bin\vc15_64" link=static runtime-link=shared runtime-link=static threading=multi debug release

Thus obtained is that 64 of the boot Library

When then use the boost library configuration to the VS can
Write pictures described here

Write pictures described here

Published 46 original articles · won praise 13 · views 60000 +

Guess you like

Origin blog.csdn.net/luliuliu1234/article/details/80148779