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
There are several calls to math functions (pow, log, log10) but math.h is not included.
This is not an issue with Arduino probably because math.h is included somewhere else. But I'm trying to use this library with RIOT-OS, which has an Arduino compatibility module and I get a number of errors like:
error: ‘pow’ was not declared in this scope
For now I'll have to apply a patch, but it would be cool to be able to use this library without modifications. This is the patch I'm going to use:
SparkFunBME280.cpp uses math functions pow, log and log10. This produces
errors such as "pow was not declared in this scope". Found this while
packaging this library for RIOT-OS.
The library works with Arduino because math.h is included somewhere
else. But I think it's better or more correct to include the headers for
the functions used.
Fixessparkfun#48
There are several calls to math functions (pow, log, log10) but
math.h
is not included.This is not an issue with Arduino probably because math.h is included somewhere else. But I'm trying to use this library with RIOT-OS, which has an Arduino compatibility module and I get a number of errors like:
For now I'll have to apply a patch, but it would be cool to be able to use this library without modifications. This is the patch I'm going to use:
The text was updated successfully, but these errors were encountered: