ESP32-S3-DevKitC-1 compiling error

Hi all,

I've encountered this error message while compiling. Please assist.

"In file included from c:\users\rapsodo\onedrive - rapsodo\desktop\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch5\xtensa-esp32s3-elf\include\c++\8.4.0\stdlib.h:36,
from C:\Users\Rapsodo\OneDrive - Rapsodo\Desktop\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:21,
from c:\users\rapsodo\onedrive - rapsodo\desktop\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch5\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
from C:\Users\Rapsodo\OneDrive - Rapsodo\Desktop\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
from c:\users\rapsodo\onedrive - rapsodo\desktop\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch5\xtensa-esp32s3-elf\sys-include\stdio.h:60,
from C:\Users\Rapsodo\OneDrive - Rapsodo\Desktop\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.6\cores\esp32/Arduino.h:27,
from sketch\sketch_jan10a.ino.cpp:1:
c:\users\rapsodo\onedrive - rapsodo\desktop\documents\arduinodata\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch5\xtensa-esp32s3-elf\include\c++\8.4.0\cstdlib:41:10: 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 ESP32S3 Dev Module.
"

This is the code that i ran:
"#define LED_R 5
#define LED_G 6
#define LED_B 7

void setup() {
delay(500);
Serial.begin(115200);
delay(500);
pinMode(LED_R, OUTPUT);
pinMode(LED_G, OUTPUT);
pinMode(LED_B, OUTPUT);
digitalWrite(LED_R, LOW);
digitalWrite(LED_G, LOW);
digitalWrite(LED_B, LOW);
delay(1000);
digitalWrite(LED_R, HIGH);
digitalWrite(LED_G, HIGH);
digitalWrite(LED_B, HIGH);
delay(1000);
digitalWrite(LED_R, LOW);
digitalWrite(LED_G, LOW);
digitalWrite(LED_B, LOW);
delay(1000);

}

void loop() {
digitalWrite(LED_R, HIGH);
delay(2000);
digitalWrite(LED_R, LOW);
digitalWrite(LED_G, HIGH);
delay(2000);
digitalWrite(LED_G, LOW);
digitalWrite(LED_B, HIGH);
delay(2000);
digitalWrite(LED_B, LOW);
delay(2000);
}"

Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Installation and Troubleshooting of the IDE

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination

the code compiles and runs for me **-- on an Arduino and it compiled when i specified an "ESP32 Dev Module" board

looks like your installation is missing a file.
what did you install to compile/run your code? which IDE?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.