Hello im trying to use vfs with spiffs. I can open and write files but when I add unlink to my code I get the following error:
error: implicit declaration of function 'unlink' [-Werror=implicit-function-declaration]
unlink("/data/foo.txt");
^
other functions like fopen, fclose, stat and rename work.
Maybe #include <sys/unistd.h>
Thanks, that did it.
Most helpful comment
Maybe
#include <sys/unistd.h>