<p>Could the issue be this:<br>
<a href="http://stackoverflow.com/questions/3363398/g-linking-order-dependency-when-linking-c-code-to-c-code">http://stackoverflow.com/questions/3363398/g-linking-order-dependency-when-linking-c-code-to-c-code</a><br>
?</p>

<p>Maybe try changing the order to your g++ call so that the source file comes before all the linker commands.</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/562#issuecomment-205673891">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLp1vGIX25hBUUbBoyVmCUrJfdKaks5p0gJtgaJpZM4Huzub.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-205673891"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>