Search code examples
c++ceclipseconfigurationcygwin

Why am I getting the "No binary found." error in the Eclipse IDE?


When trying to run this:

int main()
{
return 0;
}

I get the

Launch failed. No binary found.  

error. Why? I have the correct path set (C:\cygwin64\bin). Also, I have the Cygwin PE set too. Finally, I installed the devel package. Any help? Also getting the 3 errors of:

G++, gcc and make not found in PATH

Solution

  • Try to install MinGW instead, it works perfectly with eclipse: just make sure to set the install directory to C:\MinGW (the directory name is case-sensitive).

    Then you have to set a compiler for your projects: Go to Window -> Prefrences then

    enter image description here

    Then create a new project and set the compiler for it:

    enter image description here

    Before run your program build your project: Project -> Build Project