boost的xpressive编译错误如何解决?

CC -I~/3rdTools -L~/lib -L~/3rdTools/lib/gcc_sun  -o test_boost test_boost.cpp
"~/3rdTools/boost/xpressive/detail/utility/boyer_moore.hpp", line 62: Error: Could not find a match for std::distance<std::ForwardIter\
ator, std::Distance>(const char*, const char*) needed in boost::xpressive::detail::boyer_moore<const char*, boost::xpressive::regex_traits<char, boost::xpressive::cpp_regex_trait\
s<char>>>::boyer_moore(const char*, const char*, const boost::xpressive::regex_traits<char, boost::xpressive::cpp_regex_traits<char>>&, bool).
"~/3rdTools/boost/xpressive/detail/core/finder.hpp", line 35:     Where: While instantiating "boost::xpressive::detail::boyer_moore<co\
nst char*, boost::xpressive::regex_traits<char, boost::xpressive::cpp_regex_traits<char>>>::boyer_moore(const char*, const char*, const boost::xpressive::regex_traits<char, boost\
::xpressive::cpp_regex_traits<char>>&, bool)".
"~/3rdTools/boost/xpressive/detail/core/finder.hpp", line 35:     Where: Instantiated from boost::xpressive::detail::boyer_moore_finde\
r<const char*, boost::xpressive::regex_traits<char, boost::xpressive::cpp_regex_traits<char>>>::boyer_moore_finder(const char*, const char*, const boost::xpressive::regex_traits<\
char, boost::xpressive::cpp_regex_traits<char>>&, bool).
"~/3rdTools/boost/xpressive/detail/core/optimize.hpp", line 49:     Where: Instantiated from non-template code.
1 Error(s) detected.

你可能感兴趣的:(regex,sun,distance)