#include <bits/c++allocator.h> while using TTGO T-Call ESP32 SIM800L Module

c:\users\Nasik

\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
Error compiling for board ESP32 Wrover Module.

So the compiler is telling you that your sketch folder doesn’t contain a sub-folder called /bits with a file in it called c++allocator.h

Nothing at all to do with Blynk though.

BTW, when you post code, compiler error messages, serial monitor output etc in future please post these as text, with triple backticks at the beginning and end, not as screenshots.

Pete.

1 Like

@PeteKnight
Hi Sir,

I appreciate your guidance! I managed to resolve the issue with the /bits sub-folder and the c++allocator.h file. Thank you for pointing that out.

Now, I’m facing a new challenge. The compiler is indicating a “fatal error: BlynkSimpleSIM800.h: No such file or directory” for my TTGO T-Call ESP32 SIM800L board. I’ve included the necessary library from GitHub - blynkkk/blynk-library: Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc., but it seems the file isn’t being recognized.

Could you please provide insights on how to address this? Your assistance would be highly valuable.

You’re using an outdated method.

Read this link…

Pete.

1 Like