Salve ragazzi, ho provato ad eseguire questo programma (con eclipse) ma non riesco a compilarlo, ho installato le librerie boost ma il programma non parte
#include <boost/regex.hpp>
#include <string>
int main()
{
boost::regex pattern ("ao");
std::string stringa ("Paolo Elefante");
if (boost::regex_search (stringa, pattern)
printf ("found\n");
else
printf("not found\n");
return 0;
}

Rispondi quotando
erl_matcher<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__norma l_iterator<char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)'
