bits/c++config.h: No such file or directory. Error compiling NodeMcu in arduino

I am having the following problem while compiling and uploading any code in NODEMCU from my Arduino ide. I have tried a simple blink led code. The error message is described below. I have earlier programmed Arduino UNO from this ide. I am new to this, please help me rectify it.

Error message -

Arduino: 1.8.3 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

In file included from c:\programdata\matlab\supportpackages\r2017a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:60:0,

                from C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:255,

                from sketch\nodemcu_blink.ino.cpp:1:

c:\programdata\matlab\supportpackages\r2017a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\utility:68:28: fatal error: bits/c++config.h: No such file or directory

#include <bits/c++config.h>


compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


What does THAT have to do with Arduino?

For reference:

if Additional Boards Manager URL's: is

then copy of the contents of:


and paste the contents to:


In Arduino->Preferences "Additiona Boards Manager URL's" do you have ""? If so, the latest version of "esp8266 by ESP8266 Community" is 2.5.2 and you have 2.4.2. Go to Tools->Board:->Boards Manager... and select "Type: Updatable". This should give you the opportunity to update your version.

  1. Go to File-Preferences. Click on more preferences can be edited ... C: \ Users \ user \ AppData \ Local \ Arduino15 \ Preferences.txt.
  2. Close Arduino IDE.
  3. Open the Preferences.txt and delete all the content and save it empty.
  4. This will automatically correct the preferences when you open the Arduino IDE

It´s all.