fatal error LNK1104: 无法打开文件“libboost_regexvc80mtgd1_46_1.lib”

带有lib前缀表示的是使用静态链接。

为了使你的程序动态链接到boost,需要在:

#include <boost/regex.hpp>

之前定义宏:

#define BOOST_REGEX_DYN_LINK 1

原文地址:https://www.cnblogs.com/zengqh/p/2477422.html