Endian conversion using boost
<p>I followed the so called <a href="http://www.boost.org/doc/libs/1_58_0/libs/endian/doc/choosing_approach.html" rel="nofollow">manual of boost</a> for converting (swapping) the endian.</p>

<p>Despite their <a href="http://www.boost.org/doc/libs/develop/boost/endian/conversion.hpp" rel="nofollow">code</a> is more readable than their manual, could some one please explain how I should fix the following code?</p>

<p>hh.cpp</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;boost/array.hpp&gt;
#include &lt;boost/endian/conversion.hpp&gt;

int main () {

  std::cout &lt;&lt; boost::endian::endian_reverse(5);

  return 0;
}
</code></pre>

<p>make:</p>

<pre><code>g++ hh.cpp -o hh -Wall -Wconversion -Wfatal-errors -Wextra -std=c++11 -lboost_system -lrt  -lboost_wave -larmadillo -lboost_thread
</code></pre>

<p>error:</p>

<pre><code>hh.cpp:3:39: fatal error: boost/endian/conversion.hpp: No such file or directory
 #include &lt;boost/endian/conversion.hpp&gt;
                                       ^
compilation terminated.
</code></pre>

<hr>

<p><strong>Update</strong></p>

<p>Other boost headers are included fine. Only <code>endian</code> has problem.</p>

<pre><code>ls /usr/include/boost/*
</code></pre>

<blockquote>
  <p><a href="http://pastebin.com/nCciracE" rel="nofollow">http://pastebin.com/nCciracE</a></p>
</blockquote>

<hr>

<p><strong>Update</strong></p>

<pre><code>$ cat /usr/include/boost/version.hpp
</code></pre>

<p>Result:</p>

<pre><code>//  Boost version.hpp configuration header file  ------------------------------//

//  (C) Copyright John maddock 1999. Distributed under the Boost
//  Software License, Version 1.0. (See accompanying file
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

//  See http://www.boost.org/libs/config for documentation

#ifndef BOOST_VERSION_HPP
#define BOOST_VERSION_HPP

//
//  Caution, this is the only boost header that is guarenteed
//  to change with every boost release, including this header
//  will cause a recompile every time a new boost version is
//  released.
//
//  BOOST_VERSION % 100 is the patch level
//  BOOST_VERSION / 100 % 1000 is the minor version
//  BOOST_VERSION / 100000 is the major version

#define BOOST_VERSION 105400

//
//  BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
//  but as a *string* in the form "x_y[_z]" where x is the major version
//  number, y is the minor version number, and z is the patch level if not 0.
//  This is used by &lt;config/auto_link.hpp&gt; to select which library version to link to.

#define BOOST_LIB_VERSION "1_54"

#endif
</code></pre>