title: How to deal with Eclipse CDT+Cygwin?
body: <p>Recently I installed Eclipse Indigo Service Release 2(for JAVA EE) and installed CDT 8 online.Then I installed Cygwin with gcc,g++,gdb,make,binutils,automake,etc at the latest version.I had also made the environment variable PATH correct.</p>
  <p>Making a new C++ project(using Cygwin GCC toolchain) is just fine,but after typing a HelloWorld program,it shows lots of errors and warings.</p>
  <p>When using external builder,in error it shows</p>
  <blockquote>
  <p>&quot;Cannot run program &quot;make&quot;: ?????????¨?&quot;.</p>
  </blockquote>
  <p>When using internal builder,in conclose it shows</p>
  <blockquote>
  <p>&quot;g++ -IC:\cygwin\lib\gcc\i686-pc-cygwin\4.5.3\include\c++ -O0 -g3 -Wall -c -fmessage-length=0 -o src\test_cpp.o ..\src\test_cpp.cpp</p>
  <p>Error: Cannot run program &quot;g++&quot;: ?????????¨?</p>
  <p>Build error occurred, build is stopped</p>
  </blockquote>
  <p>In both Windows CMD and Cygwin Terminal,g++ and make both work well.</p>
  <p>What's more,Eclipse can't find the including libraries,so I have to add the path C:\cygwin\lib\gcc\i686-pc-cygwin\4.5.3\include\c++ to the project properties-&gt;C/C++ Building-&gt;Settings.But after that, in error,it still shows,</p>
  <blockquote>
  <p>'std' is ambiguous '</p>
  <p>Invalid overload of 'endl'</p>
  <p>Symbol 'cout' could not be resolved</p>
  </blockquote>
  <p>In project properties-&gt;C/C++ Building-&gt;Discovery Options,I set the Discovery Profile scope as Configeration-wide and Discovery profile as GCC per file scanner info profile.</p>