Closed
Description
Uncommenting the #include allows the program to compile. But the #include is not needed when building for Arduino Uno or Espressif ESP8266.
//#include <math.h>
void setup() {
Serial.begin(115200);
Serial.println();
Serial.print("pow(2.0, 5.0)=");
Serial.println(pow(2.0, 5.0));
}
void loop() {
}
Compile error
/home/me/arduino-esp32/portable/sketchbook/powtest/powtest.ino: In function 'void setup()':
powtest:7: error: 'pow' was not declared in this scope
Serial.println(pow(2.0, 5.0));
^
exit status 1
'pow' was not declared in this scope
Metadata
Metadata
Assignees
Labels
No labels