Boost Regex throwing an error

Posted by Srinivasa Varadan on Stack Overflow See other posts from Stack Overflow or by Srinivasa Varadan
Published on 2010-03-30T19:58:15Z Indexed on 2010/03/31 3:23 UTC
Read the original article Hit count: 347

Filed under:
|
|

Hi ALL,

I have the following error when I try to compile my code in g+ compiler using eclipse

In function `ZSt19__iterator_categoryIPKSsENSt15iterator_traitsIT_E17iterator_categoryERKS3_':
C:/Program Files (x86)/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_algobase.h:(.text$_ZN5boost11basic_regexIcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE6assignEPKcS7_j[boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, char const*, unsigned int)]+0x22): undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)'
collect2: ld returned 1 exit status
Build error occurred, build is stopped

All I have done is this statement

boost::regex re("\s+"); along with the header #inlucde

Could you kindly tell me how to proceed ?

© Stack Overflow or respective owner

Related posts about boost

Related posts about c++