<p>This is a simple linker issue.  You need to link against mlpack and its dependencies.  Add <code>-lmlpack -larmadillo -lboost_serialization -lboost_program_options -lboost_unit_test</code>.  (I think I got everything there, if not, it should be easy to read the error messages and figure out what needs to be linked against.)</p>

<p>If you haven't installed mlpack on your system you will have to specify the include directory for the mlpack build with <code>-I/path/to/mlpack/build/include/</code> and the library directory with <code>-L/path/to/mlpack/build/lib/</code>.</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/562#issuecomment-195431498">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBF_PkWIE-B7O-k02ZhK_1IdA3kaks5psZRpgaJpZM4Huzub.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/562#issuecomment-195431498"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>