<p>I can compile the code using your build commands without any problems. It would help if you could post the exact error. Also make sure <code>LD_LIBRARY_PATH</code> is set correctly or manually specify the location:</p>

<pre><code>g++ -std=c++11 -L/path/to/mlpack/build/lib/ -lmlpack  -larmadillo -lboost_serialization -lboost_program_options -I/path/to/mlpack/build/include/ Neural_network_using_mlpack.cpp
</code></pre>

<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-204810912">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFB20R41YvCCys12GGBTzfrvhVDZVks5pzum0gaJpZM4Huzub.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-204810912"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>