-->
Page 1 of 1

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

PostPosted: Sat May 09, 2020 11:42 pm
by divg2504
This is the error that I am getting while compiling an example from ESP8266 examples. There was 1 earlier post but it didn't have any solutions. (Trying a simple blink example)
Please give feedback on what might be the problem, thanks.

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.

Re: Error compiling for board NodeMCU 1.0 (ESP-12E Module).

PostPosted: Tue May 12, 2020 7:26 am
by Poulton
Hi,
What libraries do you use with #include?
There's Arduino libraries which will work only with AVR based boards due to registers used, so they wont compile for esp based boards.