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

include <array> #1

Open
Endorfin35 opened this issue May 24, 2023 · 3 comments
Open

include <array> #1

Endorfin35 opened this issue May 24, 2023 · 3 comments

Comments

@Endorfin35
Copy link

fatal error: array: No such file or directory
#include

I am getting this error while compiling. Is "array" a library? What should I do? I would be very grateful for any help. Thanks.

@Nickjgniklu
Copy link
Owner

fatal error: array: No such file or directory
#include

I am getting this error while compiling. Is "array" a library? What should I do? I would be very grateful for any help. Thanks.

This array from the c++ standard library. https://www.codesdope.com/cpp-stdarray/

I would think it is normally available. Are compiling this in arduino or platformio? Also, what board are you targeting?
Does the example sketch compile for you?

@Endorfin35
Copy link
Author

I haven't tried it on either IDE. Then I added the ArduinoSTL library. I'm not sure if ArduinoSTL is the right choice. I couldn't compile the code. I also use it for Arduino UNO.

@Nickjgniklu
Copy link
Owner

Yeah, this is really only ment for use with esp32. It must need modifications to compile for an arduino uno. I am not sure if the uno will be fast enough but it might be.

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

2 participants