I had the inclination tonight to try to compile the HAL firmware branch as an exe using gcc. I’ve run into a bit of trouble but instead of inquiring internally I thought I’d ask on the forums so that others might benefit from my inquiry.
src/spark_protocol.cpp:615:69: error: 'strnlen' was not declared in this scope
Suggestions? I actually ran into some other issues but I have been unable to replicate them.
#include <cstring> to the top of that file does not fix the issue.
#include <string.h> to the top of that file does not fix the issue.
[Edit] Apparently my compiler (MingGW) doesn’t define strnlen in string.h. ARG