-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Including <iostream> gives misleading error #4663
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
Comments
The error you see is not irrelevant, it explains what happens: the linker can't find the implementation for exceptions (among other things), and that is because exceptions are currently not supported on the ESP. However, the iostream.h file is in fact present. On the Uno, it seems that the iostream.h header is not present. |
Yes, you are right. I'll take a look re: missing symbols.
…On Sun, Apr 22, 2018, 11:41 Develo ***@***.***> wrote:
The error you see is not irrelevant, it explains what happens: the linker
can't find the implementation for exceptions (among other things), and that
is because exceptions are currently not supported on the ESP. However, the
iostream.h file is in fact present. On the Uno, it seems that the
iostream.h header is not present.
AFAIK, stdlibc++ support is not complete here, and iostream is among the
parts not supported. I could be wrong, of course.
@igrr <https://github.com/igrr> is my previous statement correct?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4663 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEJceibwIa21kOdpd-FgFEBzojgA6F9Sks5tq_wCgaJpZM4TeSRe>
.
|
I got same error.
|
same here with version 2.4.1 on Arduino IDE 1.8.5 undefined reference to `std::__throw_bad_cast()' with test sketch:
|
probably related/duplicate of #3358 |
Basic Infos
Platform
Settings in IDE
Problem Description
Compiling a sketch with
#include <iostream>
for ESP8266 gives a long, irrelevant error. Googling the error finds people who have their build system set up incorrectly, which doesn't help. I discovered this after accidentally leaving some debugging code in a hardware-agnostic utility class.MCVE Sketch
Compile error
For comparison, here is the error when compiled for Arduino Uno:
The text was updated successfully, but these errors were encountered: