Reply #3 in bits/c++config.h: No such file or directory. Error compiling NodeMcu in arduino might help
I don't use matlab but I did search for the bits/c++config in my installation and once found I copied it to the correct location. That however was long ago so a different version of the ESP stuff.
These are my notes
then copy of the contents of:
esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\xtensa-lx106-elf\bits
and paste the contents to:
esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits
I recently updated the board package (not sure why I was that stupid) and after that had the same errors again; did not try to sort it yet,