<p><code>ARMADILLO_LIBRARY</code> needs to be set to the actual file <code>libarmadillo.so</code>, so in your case I think this would be <code>/home/rcf-40-haifengc/panfs/armadillo-6.500.4/libarmadillo.so</code>.  Also, did you install Armadillo to a local directory or are you setting <code>ARMADILLO_INCLUDE_DIR</code> to the source directory you unpacked?  The latter can cause problems (due to the way Armadillo configures and works), so it's a good idea to install Armadillo to some other local directory.  You can do that with something like <code>make DESTDIR=/path/to/somewhere/ install</code>, then you should set <code>ARMADILLO_INCLUDE_DIR</code> and <code>ARMADILLO_LIBRARY</code> accordingly.</p>

<p>Once those things are figured out, I think maybe we can revisit the linking problems (I think the linker problems have to do with incorrect paths, etc.).</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/511#issuecomment-178113107">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBKQOBD8MAKBcXCWqlcEsW_07Kcmks5pf5v0gaJpZM4HPrM8.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/511#issuecomment-178113107"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>