0

I have been researching this all afternoon. I need to use regex on an embedded Linux project. It is not possible to use boost. I compile but run into linker errors - undefined references to the regex functions. I have tried adding the -std=c++11 option to the compiler command, and have tried using the #include without success. Can anyone tell me if there is a library, option or setting to try to get a regex program to build?

The answers I have seen so far seem to suggest that regex is only partly implemented. Can anyone tell me if this is true and what parts have been implemented?

Thanks in advance

John Babrick

  • I have also tried upgrading to GCC 4.8.1. I am running Ubuntu 13.04 and Eclipse. – Elmer Fudd Oct 11 '13 at 19:57
  • See [this](http://stackoverflow.com/a/12665408/525217). – mfontanini Oct 11 '13 at 19:58
  • 1
    GCC will support regular expressions Real Soon Now. They said so! – Pete Becker Oct 11 '13 at 20:08
  • OK< thanks. I did try and search this out. I have never needed to do regex programming before. Thanks for the link, I needed a definitive answer. – Elmer Fudd Oct 11 '13 at 20:13
  • Are you linking against the boost regex libraries? Do you see `/usr/lib64/libboost_regex-gcc48-mt-1_53.so` or `-lboost_regex` or similar in your linker command line? – Alastair Oct 11 '13 at 20:35
  • regex is only in 4.9.0 which is not released yet. Check out the head and have fun! The patch is still hot from this week! – Klaus Oct 12 '13 at 17:28

0 Answers0