# Error: 'isfinite' was not declared in this scope

**URL:** <https://forum.juce.com/t/error-isfinite-was-not-declared-in-this-scope/14583>\
**Category:** Android\
**Created:** [April 6, 2015, 7:52am UTC](https://forum.juce.com/t/error-isfinite-was-not-declared-in-this-scope/14583 "2015-04-06T07:52:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamwilson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/adamwilson/32/1387_2.png) [@adamwilson](https://forum.juce.com/u/adamwilson)\
**Post date:** [April 6, 2015, 7:52am UTC](https://forum.juce.com/t/error-isfinite-was-not-declared-in-this-scope/14583/1 "2015-04-06T07:52:50Z")

</div>

​

I just pulled the latest JUCE tip and got errors related to "isfinite":

```
​​
     [exec] jni/../../../Source/../JuceLibraryCode/modules/juce_audio_basics/../../../../../modules/juce_audio_basics/../juce_core/maths/juce_MathsFunctions.h: In function 'bool juce::juce_isfinite(NumericType) [with NumericType = float]':

     [exec] jni/../../../Source/../JuceLibraryCode/modules/juce_audio_basics/../../../../../modules/juce_audio_basics/../juce_core/maths/juce_MathsFunctions.h:360:27: error: 'isfinite' was not declared in this scope

     [exec] return isfinite (value);
```

I fixed on my system by removing the "isfinite" definition for Android, so it uses&nbsp;std::isfinite:

https://github.com/adamski/JUCE/commit/39736cc9f84bf5d37e7f4d7b1686125fcbbd64d5

The clue was here&nbsp;https://code.google.com/p/android/issues/detail?id=34793

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 6, 2015, 10:19am UTC](https://forum.juce.com/t/error-isfinite-was-not-declared-in-this-scope/14583/2 "2015-04-06T10:19:04Z")

</div>

Thanks, will get this sorted out right away. Actually, I think it was always wrong, just never got used anywhere until now!
