Compilation succeeds, but GLIBCXX-error when executing the program
<p>I am running this simple MWE on an external server (Red Hat Linux):</p>

<pre><code>#include &lt;iostream&gt;

#include &lt;boost/date_time/posix_time/posix_time.hpp&gt;
#include &lt;boost/date_time/posix_time/posix_time_io.hpp&gt;


using namespace std;


int main()
{
    cout &lt;&lt; boost::posix_time::second_clock::local_time() &lt;&lt; endl;
    return 0;
}
</code></pre>

<p>My version of gcc is 4.8.0. I compile with <code>g++ test.cpp</code> and compile/linkage performs without errors. But when I execute the file, I get the message <code>libstdc++.so.6: version "GLIBCXX_3.4.15" not found</code>.</p>

<p>I have also tried compiling with  <code>g++ -static test.cpp</code>, but during linkage I get the error <code>/usr/bin/ld: cannot find -lm</code>.</p>

<p>I'm not sure what is causing this problem, but something tells me that the gcc install is wrong, in the sense that the linker can't find the libraries? Do I need to contact the administrator, or can I do something about it myself? </p>
