I have a very simple regex program that will not compile on AIX using IBM's xlc++ compiler.
 
Here is the program:
 
#include <iostream>        // for I/O
#include <string>          // for string
#include <boost/regex.hpp> // for pattern matching
 
using std::cout;
using namespace std;
using namespace boost;
 
int main()
{
   const string tmp1("abc234tree");
   static const regex expression("\\w+");
 
   cout << regex_match(tmp1, expression) << endl;
 
   return 1;
}
 
Here is the compile statement:
 
/usr/vacpp/bin/xlc++ -o regex regex.cpp -I /usr/local/include -lboost_filesystem-xlc-1_32 -L/usr/local/lib
 
Here is the compiler error:
 
"/usr/local/include/boost/regex/v4/cregex.hpp", line 75.4: 1540-0063 (S) The text "0x001" is unexpected.
"/usr/local/include/boost/regex/v4/cregex.hpp", line 100.4: 1540-0063 (S) The text "0x100" is unexpected.
"/usr/local/include/boost/regex/v4/cregex.hpp", line 135.3: 1540-0063 (S) The text "1" is unexpected.