Can't use util/delay.h on c++ in Avrstudio v6
According to this link:

www.avrfreaks.net/comment/683718#comment-683718

I added :

#include &lt;math.h&gt;


to the delay.h file header, and this erro fixed.

Thanks www.avrfreaks.net