Re: regex 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_regexchar, std::regex_traitschar

regex doesn't work with g++

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

Re: regex 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_regexchar, std::regex_traitschar ::basic_regex(char const*, unsigned int)]+0x60): undefined reference to `std::basic_regexchar,

Re: regex 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_regexchar, std::regex_traitschar ::basic_regex(char const*, unsigned int)]+0x60):