Page 2 of 2

Re: error: 'isnan' was not declared in this scope isnan(n);

Posted: Sun Jun 21, 2020 9:00 am
by stevestrong
Unfortunately I cannot test it because of several compile issues (missing header file for nRF lib, not defined functions, etc).

But none of the errors was related to undeclared "isnan".

Can you post a simple sketch which shows the problem?

EDIT
I commented out all not existing functions and your sketch compiles error free, but with couple of warnings.
However, still no error related to undeclared isnan.
Even if I remove from the sketch the additional include of math.h and the corresponding using namespace line, still no error.
I checked that the file "EnvironmentCalculations.h" is correctly used by the library, and it is the case, and no error.

So I cannot reproduce your problem.
Make sure that you use the latest version from here: https://github.com/rogerclarkmelbourne/ ... ish_math.h in the respective local folder.

In the case your problem still persists, please post the complete output of the Arduino verbose build message.

Re: error: 'isnan' was not declared in this scope isnan(n);

Posted: Sun Jun 21, 2020 2:47 pm
by geostroud
Version 2020.6.20 of the STM32F1xx/GD32F1xx board manager which just showed up yesterday or this morning appears to resolve this issue. Board manage version ...17 fails but version ...20 compiles without error. I can toggle this error on and off just by installing version 20 (no error) or installing any of the versions ...5.26 through 6.17 (fails). Therefore, If you would like to close this issue out, feel free. Thanks, GeoStroud.

[SOLVED) Re: error: 'isnan' was not declared in this scope isnan(n);

Posted: Sun Jun 21, 2020 3:17 pm
by stevestrong
Thanks for the feedback.
The issue was understood and fixed, so @admin can mask this as [SOLVED].