A problem with AI Thinker ESP32-CAM board

I just bought a ESP32-CAM and following tutorial about this.

BTW I'm using newest Arduino IDE 2.1.1 on Windows 10.
everytime i try to run on AI Thinker ESP32-CAM board it always ended like this

In file included from c:\users\kristianto  bintang\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\string:41,
                 from c:\users\kristianto  bintang\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\stdexcept:39,
                 from c:\users\kristianto  bintang\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\array:39,
                 from c:\users\kristianto  bintang\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\tuple:39,
                 from c:\users\kristianto  bintang\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\functional:54,
                 from C:\Users\Kristianto  Bintang\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/HardwareSerial.h:49,
                 from C:\Users\Kristianto  Bintang\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\cores\esp32/Arduino.h:184,
                 from C:\Users\Kristianto  Bintang\AppData\Local\Temp\arduino\sketches\781A7753BCCEDDC53149FF511ADD85FB\sketch\sketch_jul31b.ino.cpp:1:
c:\users\kristianto  bintang\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\bits\allocator.h:46:10: fatal error: bits/c++allocator.h: No such file or directory**
 #include <bits/c++allocator.h> // Define the base class to std::allocator.
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

but it work on another computer with the same IDE Version. What is the best solution of this problem?

What is your username on the other computer ?

Alpha

Could the space in the username be causing a problem, I wonder ?

1 Like

it works, Thanks.
but somehow i can't open my IDE on my current user instead of a new user that i just created.
but it's not a big problem tho

Which version of the ESP32 boards file are you using ?

You may be interested in the details in Using ESP-32-PICO-D4

the newest one, 2.0.11 (?)

The new version of the ide has solved all the problems. Previously it seems the user name was recognised as a string leading to the error.

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