me sale un error de vinculador con el siguiente código:std :: regex - ¿hay alguna lib que deba vincularse?
#include <regex>
int main()
{
std::regex rgx("ello");
return 0;
}
test.o: In function `basic_regex':
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../../include/c++/4.4.1/tr1_impl/regex:769: undefined reference to `std::basic_regex<char, std::regex_traits<char> >::_M_compile()'
collect2: ld returned 1 exit status
http://www.johndcook.com/cpp_regex.html#headernamespace –
Encontré que std :: tr1 no existe en mi compilador. – Scott
Mi versión es: gcc versión 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC) – Scott