boost编译

windows: boostrap.bat -----运行&生成----> b2.exe -----运行&生成----> lib/dll文件在stage/lib下

 

linux: boostrap.sh -----运行&生成----> b2 -----运行&生成----> so/a文件在stage/lib下

 

b2可配置的参数如下:

b2.exe toolset=msvc-12.0 architecture=x86 address-model=32 link=static variant=debug,release
::b2 toolset=msvc-14.0 architecture=x86 address-model=64 link=static variant=debug,release threading=multi runtime-link=static --with-coroutine --with-context --with-container --with-graph --with-signals --with-signals --with-iostreams --with-filesystem --with-date_time --with-thread --with-serialization --with-regex --with-system --with-program_options --with-math --with-mpi --with-python --with-wave --with-test --with-atomic --with-chrono --with-exception --with-locale --with-log --with-random --with-timer  --stagedir="E:\boost_1_63_0\64" --build-dir="E:\boost_1_63_0\64\build"

 

link=static静态链接库 或者 shared动态链接库

你可能感兴趣的:(boost)