title: C++ compile error: has initializer but incomplete type
body: <p>I am coding in Eclipse and have something like the following:</p>
  
  <pre><code>#include &lt;ftream&gt;
  #include &lt;iostream&gt;
  
  void read_file(){
      char buffer[1025];
      std::istringstream iss(buffer);
  }
  </code></pre>
  
  <p>However, when I try to build, I get the following error: <code>variable 'std::istringstream iss' has initializer but incomplete type</code></p>
  
  <p>Any quick thoughts? I have googled around and it seems like most people with this problem simply did not include the right header files which I believe I am doing correctly. </p>