# juce\_core/maths/juce\_MathsFunctions.h error

**URL:** <https://forum.juce.com/t/juce-core-maths-juce-mathsfunctions-h-error/15800>\
**Category:** General JUCE discussion\
**Created:** [October 29, 2015, 5:46pm UTC](https://forum.juce.com/t/juce-core-maths-juce-mathsfunctions-h-error/15800 "2015-10-29T17:46:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lggshare](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lggshare/32/50_2.png) [@lggshare](https://forum.juce.com/u/lggshare)\
**Post date:** [October 29, 2015, 5:46pm UTC](https://forum.juce.com/t/juce-core-maths-juce-mathsfunctions-h-error/15800/1 "2015-10-29T17:46:56Z")

</div>

My English is&nbsp;really bad, so please don't mind.

I downloaded JUCE from this website and used the tool "Introjucer" to create an consol project using in CodeBlocks(Windows).

I did't add any codes,&nbsp;keeping&nbsp;the source code unchanged, just like the following.

* * *

**#include "../JuceLibraryCode/JuceHeader.h"**  
   
**int main (int argc, char\* argv[])  
{  
&nbsp; &nbsp; // ..your code goes here!**  
   
**&nbsp; &nbsp; return 0;  
}**

* * *

And when I tried to compile it with mingw32(latest stable version) under window7 64bit, it was reported as:

"D:\JUCE-WINDOWS\modules\juce\_audio\_basics\../juce\_core/maths/juce\_MathsFunctions.h:380:26: error: '\_finite' was not declared in this scope"

The related content is: (/juce\_core/maths/ **juce\_MathsFunctions.h** , 380th line)

* * *

/\*\* The isfinite() method seems to vary between platforms, so this is a  
&nbsp; &nbsp; platform-independent function for it.  
\*/  
template \<typename NumericType\>  
inline bool juce\_isfinite (NumericType) noexcept  
{  
&nbsp; &nbsp; return true; // Integer types are always finite  
}  
template \<\>  
inline bool juce\_isfinite (float value) noexcept  
{  
&nbsp; &nbsp;#if JUCE\_WINDOWS  
&nbsp; &nbsp; return **\_finite** (value) != 0;  
&nbsp; &nbsp;#else  
&nbsp; &nbsp; return std::isfinite (value);  
&nbsp; &nbsp;#endif  
}

* * *

So if anyone can help me?

---

<div class="post-metadata">

**Author:** ![Jordan\_Harris](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jordan\_Harris](https://forum.juce.com/u/Jordan_Harris)\
**Post date:** [October 29, 2015, 8:03pm UTC](https://forum.juce.com/t/juce-core-maths-juce-mathsfunctions-h-error/15800/2 "2015-10-29T20:03:17Z")

</div>

I can't remember what it was exactly, but some issues with MinGW were fixed a while back. You should clone&nbsp;JUCE from the GitHub repository for the latest version of JUCE and see if the problem still persists. The zip file from this site isn't kept up to date with the latest changes.&nbsp;
