<p>Nice catch, I think we should integrate the tutorials code into the build process to avoid such a situation.</p>

<p>So, I think what happens here is that once mlpack is build, the<code>mlpack_export.h</code> isn't in the right location. Right now I'm not completely sure this is the right way to solve the issue, however here is a simple fix that should work:</p>

<p>Add the following to the <code>src/mlpack/CMakeLists.txt</code> after line 33.</p>

<pre><code>FILE(COPY
    ${CMAKE_CURRENT_BINARY_DIR}/mlpack_export.h
    DESTINATION
    ${CMAKE_SOURCE_DIR}/src/mlpack/)
</code></pre>

<p>Change <code>#include &lt;mlpack_export.h&gt;</code> to <code>#include &lt;mlpack/mlpack_export.h&gt;</code> in all files that include the header (<a href="https://github.com/mlpack/mlpack/search?utf8=%E2%9C%93&amp;q=mlpack_export.h&amp;type=Code">https://github.com/mlpack/mlpack/search?utf8=%E2%9C%93&amp;q=mlpack_export.h&amp;type=Code</a>).</p>

<p>Maybe someone else has a better solution to solve the issue?</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-216042786">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFPwQuwY-_pvDhsFZwLAeTUEACXWKks5p9K21gaJpZM4ITevn.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-216042786"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>