I’m having a strange issue with std::regex in an addon. On macOS, with Clang, everything works as expected. On Linux, using Qt Creator, I’ve a different behaviour, and my regular expression does not work properly. I’ve read that regular expression are not correctly implemented in gcc <= 4.9, but the output of gcc -v tells me that my current version is gcc version 4.9.3 (Ubuntu 4.9.3-8ubuntu2~14.04). My questions is:
What is the compiler normally used with OF on linux? are usually people on Linux using gcc instead of clang? if yes, why?
How can I be sure that QT creator is using the compiler that I want?
This is what I see actually in the tools -> compilers tab:
I do not know if it can be useful but if you work without qtcreator you can use makefiles and configure new link populating this variable PROJECT_CFLAGS = -std=c++11 in config.make to add addons edit instead addons.make