Error 1 message using NodeMCU

I am a beginner with using Arduino, I am using NodeMCU, and I am having an error in compiling the code. I tried to work with a simple Arduino ManualWebServer code from Arduino/WiFiManualWebServer.ino at master · esp8266/Arduino · GitHub

Please suggest what might be the problem, thanks.

Error Message:

Arduino: 1.8.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 16, v2 Lower Memory, Serial, None, Only Sketch, 115200"

In file included from c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506\xtensa-lx106-elf\include\c++\4.8.2\algorithm:60:0,

from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.7.1\cores\esp8266/Arduino.h:238,

from sketch\Blink.ino.cpp:1:

c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506\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.

No such file or directory

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

is your code attempting to include bits/c++config.h?

gcjr:
is your code attempting to include bits/c++config.h?

Only indirectly. You can see from reading the error message that #include directive is in the file c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506\xtensa-lx106-elf\include\c++\4.8.2\utility, line 68:

divg2504:

c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506\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>

^

It's not a matter of @divg2504 slapping an #include directive for bits/c++config.h into their sketch.

@divg2504 if you're not using MATLAB with your ESP8266 board, I would recommend you install the normal version of the Arduino IDE, which you can download from this page:

My suspicion is this bug is specific to the MATLAB version of the Arduino IDE you are using.

I am using the normal version of Arduino, still, the same error is popping. Is it possible that there might be a problem with the board library?
I don't know how/why it is communicating with Matlab. Also, it is compiling for other boards like Uno

Issue Resolved, the problem was due to the Matlab support package that I had installed earlier, it was changing the preference settings for Board.

here is a link to resolve the issue in case anyone else is facing the same:

Great news! Can you please edit the title of your post and include [SOLVED] to help others?