<pre><code>set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
</code></pre>

<p>If I remember correctly, If you do not specify this option<br>
You would not see the lib compile by visual c++, you can find the details at <a href="https://cmake.org/cmake/help/v3.4/prop_tgt/WINDOWS_EXPORT_ALL_SYMBOLS.html">here</a>. This option should be able to omit if you are building static lib(better link to MD or MDd since many prebuild binary are doing that).</p>

<pre><code>add_definitions(-DARMA_64BIT_WORD)
</code></pre>

<p>Make armadillo able to accept more data, else it may running out of memory even your ram is big enough.</p>

<pre><code>add_definitions(-DNOMINMAX)
</code></pre>

<p>visual c++ define min max macro which has the same name as the min max of std::min and std::max, this macro asked the compiler do not use these macro(macro do not respect scope)</p>

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