Skip to content

error: std::round has not been declared #7077

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

Closed
1 task done
jatin-31 opened this issue Aug 2, 2022 · 16 comments
Closed
1 task done

error: std::round has not been declared #7077

jatin-31 opened this issue Aug 2, 2022 · 16 comments
Assignees
Labels
Resolution: Unable to reproduce With given information issue is unable to reproduce
Milestone

Comments

@jatin-31
Copy link

jatin-31 commented Aug 2, 2022

Board

ESP32-CAM

Device Description

WSP32-S

Hardware Configuration

HW-417-V1.2

Version

v2.0.4

IDE Name

Arduino

Operating System

Win 11

Flash frequency

40Mhz

PSRAM enabled

no

Upload speed

921600

Description

In file included from C:\Users*****\AppData\Local\Temp\arduino_build_766528\sketch\CameraWebServer.ino.cpp:1:0:
D:\OneDrive\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.4\cores\esp32/Arduino.h:183:12: error: 'std::round' has not been declared
using std::round;
^
Multiple libraries were found for "WiFi.h"
Used: D:\OneDrive\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.4\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi
Using library WiFi at version 2.0.0 in folder: D:\OneDrive\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.4\libraries\WiFi
exit status 1
Error compiling for board ESP32 Wrover Module.

Sketch

CameraWebServer.ino.cpp

Debug Message

N/A

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@jatin-31 jatin-31 added the Status: Awaiting triage Issue is waiting for triage label Aug 2, 2022
@SuGlider SuGlider self-assigned this Aug 2, 2022
@SuGlider SuGlider added Status: Needs investigation We need to do some research before taking next steps on this issue and removed Status: Awaiting triage Issue is waiting for triage labels Aug 2, 2022
@VojtechBartoska VojtechBartoska added this to the 2.0.5 milestone Aug 3, 2022
@P-R-O-C-H-Y
Copy link
Member

Hi @jatin-31 I was not able to reproduce the issue.

@P-R-O-C-H-Y P-R-O-C-H-Y added Resolution: Unable to reproduce With given information issue is unable to reproduce and removed Status: Needs investigation We need to do some research before taking next steps on this issue labels Aug 3, 2022
@fryefryefrye
Copy link

This problem can reproduce in arduino-1.8.10.
It can be fixed by using arduino-1.8.19.
I think this issue can be closed.

@jatin-31
Copy link
Author

jatin-31 commented Aug 4, 2022

Yes, It got it fixed in 1.8.19

@jatin-31 jatin-31 closed this as completed Aug 4, 2022
Repository owner moved this from Todo to Done in Arduino ESP32 Core Project Roadmap Aug 4, 2022
@k5map
Copy link

k5map commented Aug 17, 2022

I'm running IDE v1.8.19 and having this issue so its not resolved for me.... any other suggestions/ideas?

@ProbablyIly
Copy link

I'm also getting the exact same issue in v1.8.19. Would appreciate any help, as it doesn't seem to be solved.

Here's my error:

Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

In file included from sketch\Colour_Test.ino.cpp:1:0:

C:\Users\Ily\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/Arduino.h:183:12: error: 'std::round' has not been declared

using std::round;

        ^

exit status 1

Error compiling for board ESP32 Dev Module.

@vdbrink
Copy link

vdbrink commented Aug 22, 2022

If you repace it with only ::round; it will work (at least it worked for me)

@k5map
Copy link

k5map commented Aug 22, 2022

I was experiencing this problem and resolved it by changing the URL for the ESP32 board. The URL I was using, limited me to downloading the v1.x.x driver. Once I updated my URL to one provided by Adafruit, I can now download v2.0.x of the board driver and my compile error has been resolved.

@robomaniac
Copy link

I was experiencing this problem and resolved it by changing the URL for the ESP32 board. The URL I was using, limited me to downloading the v1.x.x driver. Once I updated my URL to one provided by Adafruit, I can now download v2.0.x of the board driver and my compile error has been resolved.

could you provide the URL so I can test this? I have issues on 1.8.19

I use these
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
https://dl.espressif.com/dl/package_esp32_index.json
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

@k5map
Copy link

k5map commented Aug 23, 2022

Here are the URL's I'm using (first is for my ESP8266):

http://arduino.esp8266.com/stable/package_esp8266com_index.json
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

I was using the URL #2 in your list and that was causing my compile error

@robomaniac
Copy link

robomaniac commented Aug 23, 2022

SOLVED
in board manager, searching for esp32, I had 1.0.6 and not the latest 2.0.4
I can compile now

thanks to this post
https://forum.arduino.cc/t/solved-esp32-problem-during-compiling/1019611/16

@k5map
Copy link

k5map commented Aug 23, 2022

@robomaniac ... that's where I learned which URL to use (I'm the same k5map in that post) :)

@rkoehler2017
Copy link

I have the same problem, IDE 2.0.0, ESP32 Arduino 2.0.4.
I compiled the example for th AI-Thinker Cam
and get the error:
n file included from T:\arduino-sketch-30651EDDB339767E0CAEED168A52ADA5\sketch\CameraWebServer.ino.cpp:1:0:
C:\Users\PCMaster\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/Arduino.h:183:12: error: 'std::round' has not been declared
using std::round;

@VojtechBartoska
Copy link
Contributor

please try 2.0.5 @rkoehler2017

@SoniaZotz
Copy link

In file included from C:\Users\zippy\AppData\Local\Temp\arduino-sketch-DE440033806199EEE7E06FC98EE4618E\sketch\CameraWebServer.ino.cpp:1:0:
C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/Arduino.h:183:12: error: 'std::round' has not been declared
using std::round;
^

exit status 1

Compilation error: exit status 1

@P-R-O-C-H-Y
Copy link
Member

@SoniaZotz Can you try installing or reinstalling arduino core inside Arduino IDE boards manager? It should fix the problem.

@maximumeffort2002
Copy link

I also did encounter that error but the only thing that work is deleting the arduino15 and reinstalling the arduino ide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Unable to reproduce With given information issue is unable to reproduce
Projects
Development

No branches or pull requests