Eclipse CDT project built but “Launch Failed. Bina

2019-01-17 15:13发布

Windows 7, Eclipse CDT, Juno Service Release 2, Cross compiler.

Projects do compile executables generated, but Eclipse can't see them; therefore 'Run' fails. Executables are placed in Debug directory. Double click or command prompt call on compiled executable works without problem.

enter image description here

How can I solve this?

13条回答
女痞
2楼-- · 2019-01-17 15:40

I've got the same problem on Eclipse 3.8.1. For me it worked to set the artifact type to executable:

Right click on the project -> C/C++ Build -> Settings -> Build Artifact -> Artifact Type: Executable

Finally rebuilding the project produced the Binaries entry in the Project Explorer.

查看更多
Melony?
3楼-- · 2019-01-17 15:41

in my case this is the solution to fix it. When you create a project select MinGW GCC from the Toolchains panel.

enter image description here

Once the project is created, select project file, press ctrl + b to build the project. Then hit run and the the output should be printed on the console.

查看更多
趁早两清
4楼-- · 2019-01-17 15:42

press ctrl +B and then You can use the Run button.

查看更多
时光不老,我们不散
5楼-- · 2019-01-17 15:43

The video link below illustrate these steps in more detail:

  1. Create Empty project
  2. Choose linux Gcc compiler
  3. Right click on project choose " source folder "
  4. Name it " src "
  5. Right click on src folder choose " source file "
  6. Start coding
  7. Save project
  8. Build project
  9. Run project

https://www.youtube.com/watch?v=wtyBvagV-_A

查看更多
孤傲高冷的网名
6楼-- · 2019-01-17 15:44

On a Mac, If you also have a similar problem, as Nenad Bulatovic mentioned above, you need to change the Binary Parsers.

Press Command + I to open up properties (or right click on your project and select property)

Make sure you select Mach-O 64 Parser.

enter image description here

查看更多
来,给爷笑一个
7楼-- · 2019-01-17 15:44

Make sure that the folder name does not contain .c extension. When I removed the .c extension in my folder name it worked automatically.

查看更多
登录 后发表回答