How to compile a c++ program in Linux?
<p>I made a file hi.cpp and I wrote the command given below:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
int main ()
{
  cout &lt;&lt; "Hello World! ";
  cout &lt;&lt; "I'm a C++ program";
  return 0;
}
</code></pre>

<p>then I ran it in my RHEL 6 machine with the following command</p>

<pre><code>gcc hi.cpp
</code></pre>

<p>and I got some errors which are as follows: </p>

<p><img src="http://i.stack.imgur.com/a4eFT.png" alt="enter image description here"></p>

<p>What do these errors denote? My code is correct then why am I getting errors?</p>
