After long time I started wetting my hands with C++ again; Since got used to Eclipse for long time have put CDT from eclipse market place.
I have Cygwin on Windows; I thought CDT will automatically pick up g++ since cygwin64/bin is on path; To my surprise the application was not building;
I was getting error saying that couldn't find the binary and failing;
I tried putting the Windows way of Cygwin path on the C/C++ Build settings of the project
It still didn't work
Finally intuition led me to look @ how is Eclipse was trying to launch the C++ Application for either building or running;
If we are selecting the cygwin its trying to launch the cygwin shell via which it was picking up the path. Then I changed it to proper path in the settings which kind of fixed the issue permanently.
I saw several are having issues with configuring such environment. Hope this helps in fixing issues for you:)



