【发布时间】:2012-08-16 10:14:08
【问题描述】:
我正在使用 boost 库进行正则表达式,我使用 boost::regex() 函数来编译正则表达式。我必须捕获此函数调用引发的异常。所以我在 catch() 中使用了boost:regex_error。
但是使用这个函数会报如下错误:
undefined symbol: _ZTIN5boost11regex_errorE
出现上述错误的原因是什么?
【问题讨论】:
-
您需要链接到 boost 正则表达式库(您必须先构建该库)。