Compilation error!

I am new to ESP32, bought a Heltec LoRa 32 board V3 and installed board (v. 3.0.0) and library (v 2.0.1) on Arduino IDE following the instructions here:https://docs.heltec.org/en/node/esp32/esp32_general_docs/quick_start.html#via-arduino-board-manager.
Everything went smooth.

However, when I selected the WiFi Lora 32 v3 board and tried to compile the WiFi Scan example, I got just the following error message:

*******************************************************************************************++
In file included from c:\users\leonardo pc\appdata\local\arduino15\packages\heltec-esp32\tools\xtensa-esp32s3-elf-gcc\esp-12.2.0_20230208\xtensa-esp32s3-elf\include\c++\12.2.0\unordered_map:40,
from c:\users\leonardo pc\appdata\local\arduino15\packages\heltec-esp32\tools\xtensa-esp32s3-elf-gcc\esp-12.2.0_20230208\xtensa-esp32s3-elf\include\c++\12.2.0\functional:61,
from C:\Users\Leonardo Pc\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\3.0.0\cores\esp32/HardwareSerial.h:49,
from C:\Users\Leonardo Pc\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\3.0.0\cores\esp32/Arduino.h:197,
from C:\Users\Leonardo Pc\AppData\Local\Temp\arduino\sketches\15CA89E08169D63BB5AEB6A903946CA5\sketch\WiFiScan.ino.cpp:1:
c:\users\leonardo pc\appdata\local\arduino15\packages\heltec-esp32\tools\xtensa-esp32s3-elf-gcc\esp-12.2.0_20230208\xtensa-esp32s3-elf\include\c++\12.2.0\bits\allocator.h:46:10: fatal error: bits/c++allocator.h: No such file or directory
46 | #include <bits/c++allocator.h> // Define the base class to std::allocator.
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1


Restarted the IDE without success.

Googling and reading past posts did not help (in some cases the library was not up to date, or the selected board was wrong… nothing applicable to my case).

I don’t know how to proceed :cry:

Any sugestion? Thanks a lot

P.S. I tried to select the Arduino Nano board and compiled the sketch “blink” without issues, the problem seems to be in the Heltec library…

Try searching these forums for “allocator”. You’ll find several threads on this subject.