-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Std::round has not been declared #8225
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
@yeesk23 - I think that the Arduino Development Environment is corrupted. |
I've just installed the Arduino Core 2.0.7 and compiled the CameraWebServer.ino example. |
@yeesk23 - what is the Arduino IDE that you are using? |
@me-no-dev - The error message is about |
im using arduino ide 2.1.0 |
is there any suggestion to try on? |
What is meant by arduino core ya? |
I see... You use Core 2.0.7 and can't update to 2.0.9, using the Arduino IDE 2.1.0. Let me try to replicate the issue. |
This screenshot doesn't look like from IDE 2.1.0... Are you sure that you are not using 1.8.x IDE version? |
Anyway, I could not reproduce the issue and I could upgade from 2.0.7 to 2.0.9 with no errors, using IDE 2.1.0. |
In Arduino.h
C99 double round (double x); float roundf (float x);long double roundl (long double x); C11 double round (double x); float round (float x);long double round (long double x); double round (T x); https://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00278_source.html Why not using C11 in platform.txt? |
@podaen - The Arduino Core currently uses C17, thus, it is even better. |
I use the reference in Arduino-ESP platform.txt. You probably mean that the Arduino IDE uses C17... I am glad for you it works, but I think it needs further testing. Some tool to highlight adapted procedures of C99 to C17 would coming handy. Not that it can be done without |
Sorry, my bad, actually Arduino 2.0.x uses C99 and C++11. But for the Arduino Core 3.0.0 + IDF 5.1 we will use C17 and C++2b (C++23 with extensions) |
@me-no-dev When can we aspect that? |
Hi, this should be covered in current 3.0.0-Alpha releases, closing the ticket.If needed, you can reopen. |
Board
ESP Wrover Module
Device Description
Arduino UNO
Hardware Configuration
.
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
921600
Description
I have run through a very basic of examples of esp32 camera which is CameraWebServer. However after following exactly youtube steps by steps, i get an error that mention that Std::Round has not been declared. What am i suppose to do?
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: