<p>When I built MLPACK by using GCC <code>4.9.2</code> on Mac OS X <code>10.10.3</code>, I encountered the following error:</p>

<pre><code>Undefined symbols for architecture x86_64:
  "___emutls_v._ZN4arma23arma_rng_cxx11_instanceE", referenced from:
      mlpack::distribution::GaussianDistribution::Random() const in gaussian_distribution.cpp.o
      mlpack::tree::CosineTree::ColumnSampleLS()     in cosine_tree.cpp.o
      mlpack::tree::CosineTree::ColumnSamplesLS(std::vector&lt;unsigned long, std::allocator&lt;unsigned long&gt; &gt;&amp;, arma::Col&lt;double&gt;&amp;, unsigned long) in cosine_tree.cpp.o
      arma::arma_rng::randn&lt;double&gt;::operator double() const [clone .isra.300] in radical.cpp.o
      void arma::eglue_core&lt;arma::eglue_plus&gt;::apply&lt;arma::Mat&lt;double&gt;, arma::Op&lt;arma::Mat&lt;double&gt;, arma::op_repmat&gt;, arma::eOp&lt;arma::Gen&lt;arma::Mat&lt;double&gt;, arma::gen_randn&gt;, arma::eop_scalar_times&gt; &gt;(arma::Mat&lt;double&gt;&amp;, arma::eGlue&lt;arma::Op&lt;arma::Mat&lt;double&gt;, arma::op_repmat&gt;, arma::eOp&lt;arma::Gen&lt;arma::Mat&lt;double&gt;, arma::gen_randn&gt;, arma::eop_scalar_times&gt;, arma::eglue_plus&gt; const&amp;) in radical.cpp.o
      mlpack::svd::RegularizedSVDFunction::RegularizedSVDFunction(arma::Mat&lt;double&gt; const&amp;, unsigned long, double) in regularized_svd_function.cpp.o
      mlpack::svd::RegularizedSVDFunction::RegularizedSVDFunction(arma::Mat&lt;double&gt; const&amp;, unsigned long, double) in regularized_svd_function.cpp.o
      ...
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmlpack.1.0.dylib] Error 1
make[1]: *** [src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
make: *** [all] Error 2
</code></pre>

<p>Clang did build MLPACK correctly.</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/432">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMCrpa2faqjUIZOGv7SMNwN2UA8tks5oBjHEgaJpZM4EFGSE.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/432"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>