You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
the undefined reference above means that the methods mentioned are not implemented and not tha they are not defined :)
the flag -lm is already added. Seems that there are some methods that should be implemented in stdlib @igrr ?
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:
Am I missing a library or something?
The text was updated successfully, but these errors were encountered: