-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing __throw_bad_cast stub #3358
Comments
I am also getting errors of undefined reference to std::__throw_bad_cast() when trying to use istringstream, on 2.4.0-rc1. e.g.: I also get "multiple definition of Removing the use of istringstream makes both errors (__throw_bad_cast and _putc_r) go away. |
.text' will not fit in regi on
iram1_0_seg' when using std::ostringstream
I ran into a similar issue with multiple definitions of _putc_r and am using this workaround: A _putc_r definition is found on line 96 of packages/esp8266/hardware/esp8266/2.4.1/cores/esp8266/libc_replacements.c Simply commenting it out allowed me to compile. |
I was able to "solve" this adding stubs to my sketch:
Idea comes from nlohmann/json#1111 above |
Basic Infos
I hope I'm providing sufficient information. I tried my best to collect as much as possible
Hardware
Hardware: ESP-8266MOD
Core Version: 3.4.0b12
Description
Problem description
Compiler error when std::ostringstream is used.
When commenting out all depenend lines and replacing
+ convert.str() +
with a 1 (inside the quotes) in the line below, all compiles fine.:Settings in IDE
Module: d1_mini
Flash Size: ?4MB/1MB?
CPU Frequency: ?80Mhz?
Flash Mode: ?qio?
Flash Frequency: ?40Mhz?
Upload Using: n/a
Reset Method: n/a
Sketch
Compiler output
Followed by more "undefined reference" messages. I think the first line after "Linking .pioenvs\d1_mini\firmware.elf" is the most important.
Debug Messages
The text was updated successfully, but these errors were encountered: