如何修复此C ++ Regex编译错误?

时间:2014-11-05 19:53:49

标签: c++ regex std

C:\Users\Hunix\AppData\Local\Temp\ccBkdVY3.o:parser.cpp:(.text$_ZNSt11basic_rege
xIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex<char, std::regex_traits<char> >:
:basic_regex(char const*, unsigned int)]+0x9c): undefined reference to `std::bas
ic_regex<char, std::regex_traits<char> >::_M_compile()'
collect2: ld returned 1 exit status
make: *** [all] Error 1

我想编译时遇到此错误。我使用了boost :: regex,但是我有这样的错误。现在我正在使用标准正则表达式,我仍然得到错误。怎么了?我该如何解决?

0 个答案:

没有答案