title: Eclipse C/C++ problems + Cygwin (complain on everything)
body: <p>So im running Eclipse C/C++ with Cygwin.</p>
  
  <p>I can run and compile smoothly:</p>
  
  <p>My test.cpp is:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
      cout &lt;&lt; "This is a demonstration! \n";
      sleep(10);
      return 0;
  }
  </code></pre>
  
  <p>And I can successfully build with this makefile:</p>
  
  <pre><code>**** Build of configuration Release for project HelloWorld ****
  
  make all 
  Building file: ../test.cpp
  Invoking: Cross G++ Compiler
  g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"test.d" -MT"test.d" -o "test.o"             "../test.cpp"
  cygwin warning:
    MS-DOS style path detected: C:\Users\David\cworkspace\HelloWorld\Release
    Preferred POSIX equivalent is: /cygdrive/c/Users/David/cworkspace/HelloWorld/Release
    CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    Consult the user's guide for more details about POSIX paths:
      http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
  Finished building: ../test.cpp
  
  Building target: HelloWorld
  Invoking: Cross G++ Linker
  g++  -o "HelloWorld"  ./test.o   
  Finished building target: HelloWorld
  
  
  **** Build Finished ****
  </code></pre>
  
  <p>After that I get HelloWorld.exe which I can run fine.</p>
  
  <p>My problem is, eclipse complain on everything! It says ive got lots of errors:</p>
  
  <pre><code>Description Resource    Path    Location    Type
  Function 'sleep' could not be resolved  test.cpp    /HelloWorld line 6  Semantic Error
  Symbol 'cout' could not be resolved test.cpp    /HelloWorld line 5  Semantic Error
  Symbol 'std' could not be resolved  test.cpp    /HelloWorld line 2  Semantic Error
  </code></pre>
  
  <p>I mean, this is obviously not the case if you read the code.</p>
  
  <p>I have tried:</p>
  
  <pre><code>Index-&gt;Update with modified files
  
  Index-&gt;Freshen all files
  
  Index-&gt;Create parser log file
  </code></pre>
  
  <p>which was the tips i've found on other websites.</p>
  
  <p>How should I tackle this problem?!</p>