fatal error LNK1104: 无法打开文件“libboost_regex-vc80-mt-gd-1_46_1.lib”

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

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

#include <boost/regex.hpp>

之前定义宏:

#define BOOST_REGEX_DYN_LINK 1

posted on 2011-05-07 07:46  zengqh  阅读(310)  评论(0编辑  收藏  举报