This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM65X: "error: identifier "once_flag" is undefined" when including regex

Part Number: PROCESSOR-SDK-AM65X

Hello,

we have a problem with the Toolchain ti-cgt-arm_20.2.0.LTS

As soon as we include the header <regex> we get the following error:

"C:/ti/ti-cgt-arm_20.2.0.LTS/include/libcxx/__locale", line 166: error: identifier "once_flag" is undefined
"C:/ti/ti-cgt-arm_20.2.0.LTS/include/libcxx/__locale", line 171: error: constexpr "std::__2::locale::id::id()" provides no initializer for:
            member "std::__2::locale::id::__flag_"

as we watched the paths and #ifdefs we are not able to understand why the __locale doesn't find the defined struct from the included mutex-header.
We are not using any additional compiler flags.

How can we solve this compiler-error?