Closed
Description
I inserted this function into a sketch that compiles and runs with no problem:
float test = 145366.45f*(1.0f - powf((VBAT/1013.25f), 0.190284f));
where VBAT is a float measured using analogRead.
The sketch does not compile and returns this error:
C:\Users\kris\Documents\Arduino\hardware\espressif\ESP32/tools/sdk/lib\libm.a(lib_a-ef_pow.o):(.literal+0xbc): undefined reference to `__ieee754_sqrtf'
C:\Users\kris\Documents\Arduino\hardware\espressif\ESP32/tools/sdk/lib\libm.a(lib_a-ef_pow.o): In function `__ieee754_powf':
/home/ivan/freertos/smpemu/newlib/newlib_xtensa-2.2.0/xtensa-esp108-elf/newlib/libm/math/../../../.././newlib/libm/math/ef_pow.c:115: undefined reference to `__ieee754_sqrtf'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board ESP32 Dev Module.
Am I missing a library or something?
Metadata
Metadata
Assignees
Labels
No labels