Reputation: 407
I try to program some stuff in c++ with eclipse, but I have slight difficulties. When I create a new Project compiling and making works fine but when I try to run the Application I get the following error message:
"Launch failed. Binary not found"
So what I found out by using google is this workaround: -right-click on the projekt in the projekt explorer -select "run as" and then "run configurations" -expand "c/c++ application" in the navbar on the left -and in the main tab of the project select "browse" -navigate to folder "debug" and select the .exe
after I do that, running works fine but I have to do it again every time I create a new Project, is there a way to automate this process?
And what I also noticed: I don't have a "binaries" folder in my projects in the project explorer, maybe its related to that, but I really don't know.
Any help is appreciated
Thanks Tim
Edit: added a video: http://youtu.be/RKnTOkoHFRU
Upvotes: 1
Views: 1472
Reputation: 2063
In my case
Now you can see this will work fine.
I have already answered this for other question see the link Launch Failed Binary not found Eclipse for C in Windows at 10th number.
Upvotes: 0
Reputation: 407
as seen here stackoverflow.com/questions/9407430, answer number 3 or 4
Upvotes: 0
Reputation:
There will only be a Binaries
folder if the build was successful. You will have to manually build to get a binary in order for the Binaries
folder to appear. Likewise, if you clean
(remove) your build folder then Binaries
will disappear.
I would guess that Eclipse cannot find your binary "out-of-the-box" because you are using external tools to manage the build process; that is, if you have a custom makefile project (or another type of project that uses another tool to handle the building) then Eclipse will not be able to provide a default run configuration because it does not "know" where the binary is or even which binary to run if there are multiple. Thus, you have to set up the Run Configuration as you are doing now.
If you create a project and let Eclipse do the building, then Eclipse can find the binaries automatically. For example, simply create an "Empty C++ Project" under "Executable". Write some hello world code. Click build. Then click run. Eclipse launches the binary because it is managing the build process and thus "knows about" where the binary ends up.
Upvotes: 1