C++:Undefined symbols for architecture x86_64 – Mac and boost library-Collection of common programming errors

::do_assign(char const*, char const*, unsigned int)”, referenced from: boost::basic_regex

::assign(char const*, char const*, unsigned int) in Untitled-hhn08L.o “boost::re_detail::perl_matcher >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)”, referenced from: boost::re_detail::perl_matcher >, boost::regex_traits > >::perl_matcher(__gnu_cxx::__normal_iterator, __gnu_cxx::__normal_iterator, boost::match_results > >&, boost::basic_regex > > const&, boost::regex_constants::_match_flags, __gnu_cxx::__normal_iterator) in Untitled-hhn08L.o “boost::re_detail::perl_matcher >, boost::regex_traits > >::match()”, referenced from: bool boost::regex_match >, char, boost::regex_traits > >(__gnu_cxx::__normal_iterator, __gnu_cxx::__normal_iterator, boost::match_results > >&, boost::basic_regex > > const&, boost::regex_constants::_match_flags) in Untitled-hhn08L.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Originally posted 2013-11-09 21:09:16.