I am using boost 1.45.0 on Ubuntu with Code :: Blocks as my IDE, and I cannot get basic_regex.hpp to compile. I am sure I configured boost correctly, because I can compile programs using boost :: format without any errors. But I get this annoying mistake, and I donβt know how to get rid of it.
Error code:
boost::regex e("\"http:\\\\/\\\\/localhostr.com\\\\/files\\\\/.+?\"");
Compiler Output (GCC):
obj/Debug/main.o In function `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, char const*, unsigned int)' /home/neal/Documents/boost_1_45_0/boost/regex/v4/basic_regex.hpp|379| undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int)'| ||=== Build finished: 1 errors, 0 warnings ===|
Am I missing the step when setting up boost or do I need to upgrade to another version of boost?
source share