<p>In triangular_kernel.hpp (line 657) the following function fails to compile as it is using the max macro from a windows header. <br>
double Evaluate(const double distance) const<br>
{<br>
return std::max(0.0, (1 - distance) / bandwidth);<br>
}</p>
<p>The workaround is to add<br>
#ifdef max<br>
#undef max<br>
#endif<br>
close to the top of the file</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/422">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFGJTt2On7fZG92i1WRc53ZyI4a8Vks5n28TSgaJpZM4Dx1eJ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/issues/422"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>