安装Boost

@echo off
set BOOST_ROOT=C:\boost_1_59_0
pushd %BOOST_ROOT%
cd tools\build
call bootstrap.bat gcc
b2 install --prefix=%BOOST_ROOT%\Boost.Build
set PATH=%PATH%;%BOOST_ROOT%\Boost.Build\Bin
cd ..\..
b2 --build-dir=%BOOST_ROOT%\boost_build --stage-dir=%BOOST_ROOT%\stage -q -j8 variant=release link=static threading=multi toolset=gcc cflags=-w cxxflags=-w runtime-link=static --layout=system
b2 --build-dir=%BOOST_ROOT%\boost_build --stage-dir=%BOOST_ROOT%\stage -q -j8 variant=release link=static threading=multi toolset=gcc cflags=-w cxxflags=-w runtime-link=static --layout=system --buildid=32 address-model=32
popd
posted @ 2015-10-26 09:29  陶皆自  阅读(163)  评论(0编辑  收藏  举报