Hi! Everyone, Hoping everyone is doing well, I often use arduino ide for esp32 programming but this time I'm facing an un expected error "Error compiling for board ESP32 Dev Module". I tried every possible solution (re-installed the ide software, re-installing of esp32 board etc.) but failed to figure out the issue. Even, I'm getting the same error for simplest code which is compiling for other arduino boards (Mega, UNO, Nano, Leonardo etc.). If someone have the solution please share to fix the error. The following code isn't compiling too and generating the error for esp32 board.
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Your comments are valuable for beginners and will be appreciated. Thanks in advance.
The complete error I'm facing is given below:
Arduino: 1.8.18 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
In file included from c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\algorithm:60:0,
from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:142,
from sketch\sketch_dec21a.ino.cpp:1:
c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\utility:68:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board ESP32 Dev Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.