C++ Hello World not compiling
<p>I just recently installed OSX lion and got xcode 4.</p>

<p>I made a file in a directory somewhere and put this code in it:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

int main()
{
  cout &lt;&lt; "Hello World!";
  return 0;
}
</code></pre>

<p>Then I ran gcc filename.cc</p>

<p>and I get these errors:</p>

<p>1.cc:3:20: error: iostream: No such file or directory
1.cc: In function ‘int main()’:
1.cc:8: error: ‘cout’ was not declared in this scope</p>

<p>what's wrong?</p>

<p>EDIT:</p>

<p>if I run g++ filename.cc I get the same errors.</p>

<p>1.cc:3:20: error: iostream: No such file or directory
1.cc: In function ‘int main()’:
1.cc:8: error: ‘cout’ was not declared in this scope</p>
