GCC regex, regular expressions

Asked by wlamers

Hello,

Does anyone know how to include regular expressions for the GCC toolchain. I have tried to link to all included libraies including libc.a But only the regex.h header seems to be included.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
chengbin (can-finner) said :
#1

regular expression facility is implemented in newlib/libc/posix, unfortunately posix is not enabled/compiled on targets like arm-none-eabi right now.
So currently it is unavailable, that's why you can't find it in C library.

Thanks.

Revision history for this message
chengbin (can-finner) said :
#2

interfaces defined in newlib/libc/posix come from posix standard and are not C89 standard. These function depends on system calls other than ones abstracted by newlib.
As other bare metal systems, arm-none-eabi target does not have such addtional syscalls, so basically these posix interfaces are unavailable.

Hoping this can explain your question. Thanks.

Can you help with this problem?

Provide an answer of your own, or ask wlamers for more information if necessary.

To post a message you must log in.