PHP-CPP C++ Extension Can't Find Regex [duplicate]
问题 This question already has answers here : Is gcc 4.8 or earlier buggy about regular expressions? (3 answers) Closed 5 years ago . I'm writing a C++ extension for PHP and I'm using regex in my code. Here is a snippet #include <phpcpp.h> #include <regex> #include <iterator> #include <iostream> #include <sstream> #include <string> #include <fstream> #include <stdio.h> using namespace std; Element* parse(std::sregex_iterator iterator, std::sregex_iterator iteratorEnd) { string segmentContent = "";