Hello,
I use regular expression with my ESP32 board, it works well. But when trying to use the
code with my MKRZERO it fails during the linking. The decalarations as included with
#include <regex.h> where found but the implementation cannot be linked:
undefined reference to regcomp' ...
regexec' ... `regfree'.
I hoped that using lregex as linker flag might help here but I don't know how to check this
out. Is there a way to use this in the MKRZERO? And how can I do this?
Best regards
Tobias
Just a thought.
You might have to use a regex specifically written for Arduinos; with the ESP32 it might already be an object file that needs to be linked and that object file does not exist for the Arduinos.
This might do the trick: Regexp - Arduino Reference. It's a library so it will be compiled and linking should not be a problem.
Thanks sterretje,
that is what I wanted to avoid. But seems to be the best solution. For that I had to learn the new syntax of the regular expressions. Did so this morning.
Never stop to develop yourself
Best regards
Tobias
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.