I used wregex as the following C++ codes. But it does not work, could you help me? any advices are welcome.
#include <boost/regex.hpp>
namespace abc
{
int ClassName::fun1()
{
wstring wp1 = _String2Wstring(p1); // This a function defined by myself.
boost::wregex wreg(wp1,boost::regex::perl|boost::regbase::icase);
......
}
}
I can compile a .so file successfully in centos 7. But when I start my application. I get the following message in the log file by the website http://demangler.com/
undefined symbol: boost::basic_regex<wchar_t,
boost::regex_traits<wchar_t, boost::cpp_regex_traits<wchar_t> >
>::do_assign(wchar_t const*, wchar_t const*, unsigned int)
And if delete the following code, I can start my application. So I think the error is from this code. But I am confused to find the answer. Thanks.
boost::wregex wreg(wp1,boost::regex::perl|boost::regbase::icase);