Post topics, source code that relate to the Arduino Platform

User avatar
By WilsonEvans
#89790 Need help on the compilation error for an ESP8266 example, I tried different examples but the same error is executing for any code. (even for a blink example)

what might be the problem, please suggest, thanks. following is the 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), 2, v2 Lower Memory, Disabled, 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.0\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.
User avatar
By schufti
#89827 this does not look like arduino IDE. If you use other IDE (with arduino esp8266 core) ask over there for support.
If you think it is a genuine arduino core error, install a portable version of Arduino IDE, include esp 8266 board package and try compiling again.
If you stll encounter same problem, please enable verbose detail (as instructed in your copy&paste) and give more details about your setup.