<p>I modified the code as <a href="https://github.com/zoq" class="user-mention">@zoq</a> suggested and added <code>-lmlpack</code> flag in the command like <a href="https://github.com/Kirizaki" class="user-mention">@Kirizaki</a>  suggested.<br>
It works like a charm now :) thank you.</p>

<p>Should I update the <code>CMakeLists.txt</code> and likes changed to <code>#include &lt;mlpack/mlpack_export.h&gt;</code> to my future pull request? or is it just my case?</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/633#issuecomment-216053858">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNY82tI9GtXWK6mZ9VZfJyDGgq3Hks5p9NVMgaJpZM4ITevn.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/633#issuecomment-216053858"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>