Mbed LocalFileSystem Error

I am trying to use the LocalFileSystem feature on an lpc1768, however GCC is giving me this error:

My code:

#include "mbed.h"

LocalFileSystem local("local");               // Create the local filesystem under the name "local"

int main() {
    FILE *fp = fopen("/local/out.txt", "w");  // Open "out.txt" on the local file system for writing
    fprintf(fp, "Hello World!");
    fclose(fp);
}

This is building and running fine in the mbed online compiler. My mbed framework is up to date. I am developing in the Atom IDE.

I have assured that LocalFileSystem.h and LocalFileSystem.c files are the same as the ones on the mbed-os 5 repository.

I have also updated the framework, cleaned the build, and rebuilt the project index.

I have not seen anyone else experience this before. If this is a duplicate, please redirect me.

Thanks!

Please file an issue here Issues · platformio/platform-nxplpc · GitHub

@valeros I see the same error for mbed tests: Travis CI - Test and Deploy Your Code with Confidence