Skip to content
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

<iostream> not usable #144

Open
Ebola-Chan-bot opened this issue Feb 14, 2024 · 0 comments
Open

<iostream> not usable #144

Ebola-Chan-bot opened this issue Feb 14, 2024 · 0 comments

Comments

@Ebola-Chan-bot
Copy link

The inclusion of some standard library headers can cause compilation errors. For example:

#include <iostream>
void setup() {
}
void loop() {
}
C:\Users\vhtmf\AppData\Local\Temp\arduino\sketches\4F283322D1DC7D231547A617FD5B3E64\sketch\sketch_feb10a.ino.cpp.o: In function `__static_initialization_and_destruction_0':
c:\users\vhtmf\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3/iostream:74: undefined reference to `std::ios_base::Init::Init()'
c:\users\vhtmf\appdata\local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3/iostream:74: undefined reference to `std::ios_base::Init::~Init()'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

It seems that there are some functions declared in the header file that are not defined.

The standard library does not appear to be in this repository. Does anyone know where it's downloaded from? I installed the standard library automatically after installing the Arduino SAM Boards in the Arduino IDE Board Manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant