user51328: I'm trying to use the FastNoise library with a Due, however, I get something like the following errors, when I try to complie.
error: 'abs' was not declared in this scope
error: 'mt19937' is not a member of 'std'
error: 'uniform_int_distribution' is not a member of 'std'
so I added the following:
#include <cstdlib>
#include <cmath>
#include <random>

which solved most of the problems, however it still says printf hasn't been declared. So I tried to edit cstdio to comment out the #undef printf, but it just brought back the full list of error messages, so that's not the solution. I googled some solutions but none of these seem to work. Do you have any suggestions I should try?
I'm not trying to use printf, just want to use the library.
Thanks for any help.

user37622: The workaround is in the issue found by Jot.
In file 
C:\Users\aaaaaa\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\cstdio 
comment the line
#undef printf
and it will compile

51328: <p>I'm trying to use the FastNoise library with a Due, however, I get something like the following errors, when I try to complie.</p>

<p>error: 'abs' was not declared in this scope<br>
error: 'mt19937' is not a member of 'std'<br>
error: 'uniform_int_distribution' is not a member of 'std'<br></p>

<p>so I added the following:</p>

<pre><code>#include &lt;cstdlib&gt;
#include &lt;cmath&gt;
#include &lt;random&gt;
</code></pre>

<p>which solved most of the problems, however it still says printf hasn't been declared. So I tried to edit cstdio to comment out the #undef printf, but it just brought back the full list of error messages, so that's not the solution. I googled some solutions but none of these seem to work. Do you have any suggestions I should try?</p>

<p>I'm not trying to use printf, just want to use the library.</p>

<p>Thanks for any help.</p>
 37622: <p>The workaround is in the <a href="https://github.com/arduino/ArduinoCore-samd/issues/308" rel="nofollow noreferrer">issue</a> found by Jot.
In file </p>

<p><code>C:\Users\aaaaaa\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\cstdio</code> </p>

<p>comment the line</p>

<p><code>#undef printf</code></p>

<p>and it will compile</p>
