I had to write some code for Arduino in C++. The code works perfectly, but wouldn't work in Arduino as I had used some libraries like vectors, ifstream, etc.
So I included the StandardCplusplus library. I downloaded the zip version of the library.
I copied the extracted version into the library folder of Arduino. Now the vector library works, i.e. it doesn't give any compile error.
But on #include fstream, Arduino gives the following error: fatal error: unistd.h: No such file or directory
unistd.his not a C or a C++ header! It is a POSIX header.How did you try to include ?#include <sys/unistd.h>You can also try Arduino Plus from herehttps://github.com/smeshlink/Arduino-Plus