Re: doesn't work with g++

2012-07-27 Thread Zouzou
On 27/07/12 5:26, Daniel Colascione wrote: On 7/26/2012 8:03 PM, Yaakov (Cygwin/X) wrote: On 2012-07-26 16:46, Daniel Colascione wrote: $ g++ -std=gnu++0x foo.cpp /tmp/ccS3vCW7.o:foo.cpp:(.text$_ZNSt11basic_regexIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex >::basic_regex(char const*, unsigned

Re: doesn't work with g++

2012-07-26 Thread Daniel Colascione
On 7/26/2012 8:03 PM, Yaakov (Cygwin/X) wrote: > On 2012-07-26 16:46, Daniel Colascione wrote: >> $ g++ -std=gnu++0x foo.cpp >> /tmp/ccS3vCW7.o:foo.cpp:(.text$_ZNSt11basic_regexIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex> >> std::regex_traits >::basic_regex(char const*, unsigned >> int)]+0x60):

Re: doesn't work with g++

2012-07-26 Thread Yaakov (Cygwin/X)
On 2012-07-26 16:46, Daniel Colascione wrote: $ g++ -std=gnu++0x foo.cpp /tmp/ccS3vCW7.o:foo.cpp:(.text$_ZNSt11basic_regexIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex >::basic_regex(char const*, unsigned int)]+0x60): undefined reference to `std::basic_regex >::_M_compile()' collect2: ld returne

doesn't work with g++

2012-07-26 Thread Daniel Colascione
/tmp $ cat foo.cpp #include #include int main() { std::regex e("hello"); } $ g++ -std=gnu++0x foo.cpp /tmp/ccS3vCW7.o:foo.cpp:(.text$_ZNSt11basic_regexIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex >::basic_regex(char const*, unsigned int)]+0x60): undefined reference to `std::basic_regex >: