带有lib前缀表示的是使用静态链接。
为了使你的程序动态链接到boost,需要在:
#include <boost/regex.hpp>
之前定义宏:
#define BOOST_REGEX_DYN_LINK 1