使用boost库后的编译方式,该如何处理

使用boost库后的编译方式
程序中使用了boost库中的正则表达式,编译链接时出现错误 LINK : fatal error LNK1104: 无法打开文件“libboost_regex-vc90-mt-gd-1_47.lib” 于是将配置属性中的运行库改为MTd(vs2008,原先是MDd),于是可以成功编译.
在网上查了下,MD(d)是静态编译,MT(d)是动态编译,动态编译的程序运行时依赖运行库,而静态编译则将所有需要的文件都编译在一起了,那么我是不是可以采用动态编译的方式重新编译boost库呢,具体的编译命令应该是什么样子的?

------解决方案--------------------

./b2 --help
查看编译和安装的选项,可以选择的
------解决方案--------------------
㈠、打开tools\build\v2\user-config.jam,查找 MSVC configuration,添加:
using msvc : 10.0 : "cl.exe" : 
<compileflags>/wd4819
<compileflags>/Os
<compileflags>/D_CRT_SECURE_NO_DEPRECATE
<compileflags>/D_SCL_SECURE_NO_DEPRECATE 
<compileflags>/D_CRT_NONSTDC_NO_DEPRECATE
<compileflags>/D_SECURE_SCL=0
<linkflags>/MANIFEST:NO
<linkflags>/OPT:REF
<linkflags>/OPT:ICF
<linkflags>/IGNORE:4089 ;
㈡、进入tools\build\v2目录,命令行下执行“bootstrap.bat vc10”,参数用法详见“engine\build.bat”中的说明。编译完成后,执行“.\b2 --prefix=D:\BJAM install”安装,再“set PATH=%PATH%;D:\BJAM\bin”添加到PATH环境变量中。
㈢、编译:
bjam --with-date_time --with-filesystem --with-iostreams --with-random --with-thread --build-type=complete threading=multi runtime-link=static --libdir=".\lib" stage
㈣、提取头文件
进入tools\bcp目录,执行:“bjam runtime-link=static”,完成后在bin.v2\tools\bcp\msvc-10.0...得到bcp.exe
拷贝bcp.exe到boost源码根目录下,执行:
cmd /C "if exist foo (rmdir /S /Q foo) && mkdir foo && bcp algorithm asio config conversion crc date_time dynamic_bitset filesystem format iostreams mpl pool random range signals2 smart_ptr thread timer tokenizer utility uuid foo"

发现问题,随时用bjam --help查询。
查询哪些库需要编译:bjam --show-libraries