<p>You can just add the libxml2 include path to GCC's search path by adding <code>-I/path/to/include/libxml2/</code> (which on your system, I guess, is <code>/usr/local/include/libxml2/</code>).  The right solution for libxml2 is either a complete redesign of the SaveRestoreUtility, or a refactoring that completely hides the libxml2 classes in <code>.cpp</code> files (so that the libxml2 headers aren't required by any of the mlpack headers).  If you're interested in trying to do that, please feel free, but I think the refactoring may be somewhat complex.  (We should probably discuss on that issue instead, if you're interested in continuing the discussion.)</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/402#issuecomment-74081706">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNMm6jfdgzdA90Cq8XEPtp9l0OsFks5nrLQOgaJpZM4DfCJ_.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/402#issuecomment-74081706"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>