简体   繁体   English

g ++正则表达式头文件

[英]g++ regex header file

I have been working in c++ for a while and something came up. 我已经在c ++中工作了一段时间,然后出现了一些问题。 I tried to include regex header. 我试图包括正则表达式头。 But compiler won't find the header file. 但是编译器找不到头文件。

However, when I try to compile same file using clang++, It compiles and works great. 但是,当我尝试使用clang ++编译同一文件时,它可以编译并运行良好。

Sample code I tried was from here 我尝试过的示例代码来自这里

This depends on the C++ library the compiler uses. 这取决于编译器使用的C ++库。 Eg for GCC 4.9 regex is now implemented. 例如,现已实施GCC 4.9 regex Options for using C++11 today summarizes this quite well. 今天使用C ++ 11的选项对此进行了很好的总结。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM