<p>I bet that you compiled mlpack with Armadillo configured with ARMA_64BIT_WORD disabled, but in your code that you compiled, ARMA_64BIT_WORD is enabled. (or vice versa). The compiler should emit a big warning if you do that.</p>

<p>The actual issue is that libmlpack.so is compiled with <code>uword</code> set to an integer type of one length (<code>uword</code> is used by Armadillo objects) whereas you program is compiled with <code>uword</code> set to another size. Note that <code>LogisticRegression</code> is a template class and is thus compiled only in to your executable whereas <code>LogisticRegressionFunction</code> is not and therefore is compiled into libmlpack.so. Or is that libmlpack.dylib on OS X?</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/428#issuecomment-111883078">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFEfBgnPiN-hJUUXymdyPJuVH3Fkjks5oTgBpgaJpZM4D3Y7n.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/428#issuecomment-111883078"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>