title: "Symbol 'cin' can not be resolved" error in Eclipse on OS X
body: <p>I am just beginning a C++ class and I am working on our first homework. I am using Eclipse and it's giving me some problems. Here is my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
      int first, second;
      cout&lt;&lt; "Type the first number and press enter.\n";
      cin&gt;&gt;first;
      cout &lt;&lt; "Type the second number and press enter.\n";
      cin&gt;&gt;second;
      cout&lt;&lt;"The sum of "&lt;&lt;first&lt;&lt;" and "&lt;&lt;second&lt;&lt;" is "&lt;&lt;(first+second)&lt;&lt;", and the product is "&lt;&lt;(first*second)&lt;&lt;endl;
  }
  </code></pre>
  
  <p>I am fairly sure that the code is good and should compile and run, but Eclipse is giving me a bunch of errors. For each of the cin and cout statements, I am getting an error which says: "Symbol 'cin'/'cout' could not be resolved." I am also getting an error which says: "symbol(s) not found for architecture x86_64."</p>
  
  <p>I am running Mac OS X v10.7.2, GNU Make 3.81, and i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00).</p>
  
  <p>Like I said, I'm new, so if you need more info, just let me know. Thank you.</p>