<p>I think the Boost errors were my own setup; I am not able to reproduce them on other systems, so I think we can ignore them.</p>

<p>I did find, though, that I got errors with <code>-fkeep-inline-functions</code>:</p>

<pre><code>Linking CXX executable ../../../../bin/mlpack_fastmks
CMakeFiles/mlpack_fastmks.dir/fastmks_main.cpp.o: In function `__gnu_cxx::recursive_init_error::recursive_init_error()':
/usr/include/c++/5/cxxabi.h:702: undefined reference to `vtable for __gnu_cxx::recursive_init_error'
</code></pre>

<p>That's with gcc 5.2.1, and I've added <code>-lsupc++</code>:</p>

<pre><code>set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lsupc++")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lsupc++")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -lsupc++")
</code></pre>

<p>I'll keep looking to see if I can work out the issue.  Maybe I have set the <code>-lsupc++</code> option wrong or something, but that does seem to work on other GCC 5 versions.</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, <a href="https://github.com/mlpack/mlpack/pull/720#issuecomment-233465298">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFFmZRhnHHxeNx9kJGpce4UpaVXT3ks5qW_CXgaJpZM4JJw9X">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFC5q7ZOBJdgEeA-HoLnM0qxpO_oJks5qW_CXgaJpZM4JJw9X.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/pull/720#issuecomment-233465298"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>