• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Arduino code compile error

Q&A Forum › Category: Arduino › Arduino code compile error
0 Vote Up Vote Down
Charles Merkel asked 4 days ago

https://imgur.com/a/9cJj2al
https://pastebin.com/F0vaXr0q
I have run into a problem making a change in one of my ESP32 servers that I built from your server course some time ago. I need your help in fixing this issue. This issue occurred as I was trying to compile the code to create a new .bin fie. Keep in mind that this code has been working fine for a couple of years. I had to make a change in the I/P address and when I went to create the new .bin file I got this error. I am not sure if it is telling me that I need to add some code or is there a file missing? I have never seen the term <cmath>
Regards,
Charles

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 days ago

Hi.
Do you use cmath in any of the files you have for  your project?
Which board are you selecting when compiling the code?
Regards,
Sara

0 Vote Up Vote Down
Charles Merkel answered 2 days ago

Sara, This is the first time I  heard of cmath. I have to say that if I do use it, I sure do not know about it. The board I have selected is the “nodemcu-32s”. That board name is specified in all the .bin files that I created previously.
Regards
Charles

0 Vote Up Vote Down
Sara Santos Staff answered 1 day ago

Hi again.
I believe that’s something broken with your Arduino IDE or ESP32 boards installation,
 
On your computer, go to this directory: C:/Users/merke/AppData/Local/Arduino15/packages/esp32/
Delete the esp32 folder under the packages folder.
 
Then, install the ESP32 boards again: https://randomnerdtutorials.com/installing-esp32-arduino-ide-2-0/
 
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 1 day ago

Let me know if that fixes the issue.
Regards,
Sara

0 Vote Up Vote Down
Charles Merkel answered 11 hours ago

Sara, The problem turned out to be with one of the library files that is in the #include section of the sketch. I found one that would not update automatically and I had to go to the library and delete it and then install the latest version. One problem solved and I am working on another one. When I formulate an intelligent question, I will post it here. we can mark this one solved.
Regards,
Charles
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 Version 1.7 November 28, 2025
  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 V1.6 September 9, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.