std::regex — is there some lib that needs to be linked?

前端 未结 2 723
攒了一身酷
攒了一身酷 2021-02-20 12:09

I get a linker error with the following code:

#include 

int main()
{
    std::regex rgx(\"ello\");
    return 0;
}

test.o: In function `basic_rege         


        
2条回答
  •  执笔经年
    2021-02-20 12:37

    you may get the implmentation status from: http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt01ch01.html#manual.intro.status.standard.tr1

    to use regex, you could install boost library and their tr1 has already included regex.

提交回复
热议问题