will not run [message #1785046] |
Sun, 08 April 2018 13:02  |
Eclipse User |
|
|
|
I built a c project from some files that I found in a folder and then compiled the project. The group of files made a very nice build, and I can see the .0 and .exe files in the debug directory that was created, so I know I have a runnable exe file. The problem that I have is that with the main.c file showing in the console and clicking on the run button, it pops up a window saying that the " launch failed, the binary could not be found"! I have been tinkering with this project and had to compile it several times before because of some syntax errors: one of the files in the project was copied over to correct for a small syntax error, and then the whole thing compiled correctly, but now I have this strange problem. I think there is a problem in the project properties menus, but I cannot find the answer.
|
|
|
Re: will not run [message #1785064 is a reply to message #1785046] |
Mon, 09 April 2018 00:08  |
Eclipse User |
|
|
|
I don't depend on CDT creating default launch configurations.
Read here on how they work and how to create one.
https://help.eclipse.org/oxygen/topic/org.eclipse.cdt.debug.application.doc/tasks/cdt_o_run.htm?cp=93_4_0
There is an error in the documentation though.
You access the launch configurations through
Run--> Run Configurations ... or Debug --> Debug Configurations ...
You can also get to them using the down arrow next to the Run and Debug tools.
Assuming, of course, you have the Launch Toolbar enabled
The one thing that may confuse beginners is that the name of the launch configuration is unique.
Both Run Configurations and Debug Configurations access the same named launch configuration.
The only difference is the dialog used.
Read the section for creating a launch configuration.
You'll need to eventually know how.
Might as well start now.
|
|
|
Powered by
FUDForum. Page generated in 0.51692 seconds