<p><code>error C3066</code> seems a known bug in vs compiler, there is a very similar question on stackoverflow <a href="http://stackoverflow.com/questions/21963867/c-armadillo-gcc-vs-vc2013-operator-and-overloading">http://stackoverflow.com/questions/21963867/c-armadillo-gcc-vs-vc2013-operator-and-overloading</a></p>

<p>I have compiled mlpack on windows using MinGW and everything works well. I am not sure the reason you need to use visual studio.</p>

<p>If you just need the IDE, not the compiler, you can use MinGW in VS <a href="https://github.com/juj/vs-tool">https://github.com/juj/vs-tool</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/421#issuecomment-82633185">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCP7bPxPr5ZLjDh5ZltjsLjW6Vbjks5n2Kk2gaJpZM4DwHqN.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/421#issuecomment-82633185"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>