title: Code::Blocks/ Dev-c++: error: iostream: No such file or directory
body: <p>I downloaded Code::Blocks from here: <a href="http://www.codeblocks.org/downloads/26" rel="nofollow noreferrer">http://www.codeblocks.org/downloads/26</a></p>
  <p>I'm learning c programming. When I run the following program, I get error:</p>
  <pre><code>iostream: No such file or directory
  error: syntax error before &quot;namespace&quot;
  warning: type defaults to `int' in declaration of `std'
  warning: data definition has no type or storage class
  In function `main':
  error: `cout' undeclared (first use in this function)
  error: (Each undeclared identifier is reported only once
  error: for each function it appears in.)
  error: `cin' undeclared (first use in this function)
  </code></pre>
  <p>I'm running the following program:</p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
    int x;
  
    x = 0;
    do {
      // &quot;Hello, world!&quot; is printed at least one time
      //  even though the condition is false
      cout&lt;&lt;&quot;Hello, world!\n&quot;;
    } while ( x != 0 );
    cin.get();
  }
  </code></pre>
  <p>I tried Dev-C++, I get the same error.
  How to fix this?</p>