ESP32 V2 'std::round' compile error

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
_phillip
 
Posts: 313
Joined: Fri Apr 09, 2021 3:28 pm

ESP32 V2 'std::round' compile error

Post by _phillip »

Greetings,
I have only had this board for a day, but do believe that I followed all of the Adafruit Feather ESP32 V2 instructions.

My error is as follows:

Code: Select all

In file included from /var/folders/wr/pylxb9ts48v28018gz3ggb7m0000gn/T/arduino_build_349656/sketch/new_adafruit_blink.ino.cpp:1:0:
/Users/PhillipBriles/Documents/Arduino/hardware/espressif/esp32/cores/esp32/Arduino.h:183:12: error: 'std::round' has not been declared
 using std::round;
            ^
exit status 1
Error compiling for board Adafruit Feather ESP32 V2.
Any help resolving this will be greatly appreciated.

Thank you.

User avatar
_phillip
 
Posts: 313
Joined: Fri Apr 09, 2021 3:28 pm

Re: ESP32 V2 'std::round' compile error

Post by _phillip »

The sketch I compiles was the one suggested the the Adafruit Feather ESP32 V2 PDF found here:

https://learn.adafruit.com/adafruit-esp32-feather-v2

I also tried the Examples BLINK version and got the same error message.

Thanks!

User avatar
_phillip
 
Posts: 313
Joined: Fri Apr 09, 2021 3:28 pm

Re: ESP32 V2 'std::round' compile error

Post by _phillip »

After much searching - and using the 'correct' search words - I think I found the solution as seen next:

https://forum.arduino.cc/t/solved-esp32 ... 1019611/16

My ESP32 library version was 1.0.6 and after adding the new GitHub ESP32 library I have now installed version 2.0.4, but I now have a new issue that I believe means that my old Apple laptop has become officially obsolete.

Here is the new error message:

Code: Select all

[9152] Error loading Python lib '/var/folders/wr/pylxb9ts48v28018gz3ggb7m0000gn/T/_MEIZeXltv/libpython3.8.dylib': dlopen: dlopen(/var/folders/wr/pylxb9ts48v28018gz3ggb7m0000gn/T/_MEIZeXltv/libpython3.8.dylib, 10): Symbol not found: ____chkstk_darwin
  Referenced from: /var/folders/wr/pylxb9ts48v28018gz3ggb7m0000gn/T/_MEIZeXltv/libintl.8.dylib (which was built for Mac OS X 11.0)
  Expected in: /usr/lib/libSystem.B.dylib
 in /var/folders/wr/pylxb9ts48v28018gz3ggb7m0000gn/T/_MEIZeXltv/libintl.8.dylib
exit status 255
/Applications/Arduino.app/Contents/Java/arduino-builder returned 255
Error compiling for board Adafruit Feather ESP32 V2.
As seen above the code notes '... was built for Mac OS X 11.0)'. My Mac is running Mac OS X 10.13.2 and I believe that is the most current that this available for this old computer. Sigh.

All thoughts, comments and, of course, prayers, are most welcome.

User avatar
_phillip
 
Posts: 313
Joined: Fri Apr 09, 2021 3:28 pm

Re: ESP32 V2 'std::round' compile error

Post by _phillip »

I had to begin using my newer iMac, download all of the files, etc, etc, etc, but for all of that work, I was finally able to compile and run the 'modified' BLINK sketch from the Adafruit Feather ESP32 V2 PDF file.

The setup and compilation of these new ESP32 V2 boards are very different from the Feather MO WIFI boards I am accustomed to. No pain, no gain.

Bottom line, sadly, is that I do need to purchase a new laptop computer.

I'm good. Thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”