Hi,
I’m encountering a compilation error while working with ArduinoJson on my Seed Studio XIAO ESP32C3 board. The error message is:
In file included from c:\users\gregericsonanakjolis\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\bits\ios_base.h:46,
from c:\users\gregericsonanakjolis\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\ios:42,
from c:\users\gregericsonanakjolis\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\ostream:38,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Strings/JsonString.hpp:8,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Strings/Adapters/JsonString.hpp:8,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Strings/StringAdapters.hpp:8,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/StringPool.hpp:11,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/ResourceManager.hpp:9,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/JsonVariantConst.hpp:10,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:9,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/ElementProxy.hpp:7,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/JsonArray.hpp:7,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:29,
from c:\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Arduino\sketch_oct16a\sketch_oct16a.ino:11:
c:\users\gregericsonanakjolis\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\system_error:39:10: fatal error: bits/error_constants.h: No such file or directory
#include <bits/error_constants.h>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Setup details:
- Arduino IDE version: 2.3.2
- ESP32 core version: esp32-arduino-2.0.17
- Board: ESP32C3
- Libraries: ArduinoJson 7.2.0
Has anyone encountered this error, and how can I resolve it?
Thanks in advance for your help!