简体   繁体   English

“发射失败了。 找不到二进制文件。“CDT Kepler Eclipse上的错误

[英]“Launch failed. Binary not found.” error on CDT Kepler Eclipse

Running or debugging anything gives me an extremely frustrating "Launch failed. Binary not found" error. 运行或调试任何东西给我一个非常令人沮丧的“启动失败。找不到二进制”错误。 I'm using Eclipse with a CDT plugin installed (specifically, I have the MinGW package installed). 我正在使用安装了CDT插件的Eclipse(具体来说,我安装了MinGW软件包)。

I already tried setting both the user and system PATH variables to include my (MinGW directory)/bin 我已经尝试将用户和系统PATH变量都设置为包含my(MinGW目录)/ bin

I also tried building the program before running it. 我还尝试在运行之前构建程序。

I also made sure that PE Windows Parser under the project's settings was enabled. 我还确保启用了项目设置下的PE Windows Parser。

I went to Project Properties > Run/Debug Settings > New > C/C++ Application > Environment > Select > and I selected the Path 我去了Project Properties> Run / Debug Settings> New> C / C ++ Application> Environment> Select>,然后我选择了Path

I also tried setting the C/C++ Application in the Main tab to the executable file that is made from building the program, but no such file is made when I do build my program. 我还尝试将主选项卡中的C / C ++应用程序设置为通过构建程序生成的可执行文件,但是在构建程序时没有生成这样的文件。 I seriously doubt that this is what's causing the problem, though. 不过,我严重怀疑这是导致问题的原因。

I'm running out of options, and the problem still persists. 我的选项用完了,问题仍然存在。 What else needs to be done? 还有什么需要做的? What am I doing wrong? 我究竟做错了什么?

When I was looking through the install instructions for MinGW, the tutorial referenced the mingw base package as the package to install after installing MinGW. 当我查看MinGW的安装说明时,本教程将mingw基本软件包引用为安装MinGW后要安装的软件包。 But mingw base was not available to me. 但是mingw base不适合我。 Instead, I saw mingw32 base. 相反,我看到mingw32基地。 Could it be that Eclipse, a 64 bit program, is trying to run 32 bit code? 可能是64位程序Eclipse试图运行32位代码吗? Is that what's going on? 那是怎么回事? If that's the problem, how do I fix it? 如果这是问题,我该如何解决?

  1. Build 建立
  2. Refresh the project. 刷新项目。 A new folder named Binaries will appear now in project explorer. 现在,项目资源管理器中将出现一个名为Binaries的新文件夹。
  3. Now Run :) 现在运行:)

It took me 3 days to figure out my problem. 我花了3天时间才弄明白我的问题。 My Hello World C program would compile in eclipse using the Windows PE Parser, but there was NO EXE FILE!!!! 我的Hello World C程序将使用Windows PE Parser在eclipse中编译,但是没有EXE文件! AVAST Antivirus was identifying the exe file as a false positive and removing it....grrrrr. AVAST Antivirus将exe文件识别为误报并将其删除.... grrrrr。 The solution was to add the eclipse workspace folder to the exclusions list. 解决方案是将eclipse工作区文件夹添加到排除列表中。 Voila!! 瞧! Eclipse generated my test.exe file. Eclipse生成了我的test.exe文件。

在构建和运行之前先保存文件...它适用于我

Check the compiler you set while you created the project . 检查创建项目时设置的编译器。 If that is MINGW or Visual Studio ; 如果是MINGW或Visual Studio; check whether they are downloaded or not . 检查是否下载了它们。 If not do so and start a new project by closing the old one . 如果不这样做并通过关闭旧项目开始一个新项目。 Build the new project by pressing Ctrl + B and a new file 'Binaries' is created in the package explorer . 按Ctrl + B构建新项目,并在包资源管理器中创建一个新文件“Binaries”。 Now you can use the run option to run the project . 现在,您可以使用run选项来运行项目。

First the solution: install "make" 首先解决方案:安装“make”

I had the same issue. 我遇到过同样的问题。

I also tried the steps you did with no luck. 我也尝试过你没有运气的步骤。

After some time i found a the solution! 过了一段时间,我找到了解决方案!

The problem was that i did not have the application "make". 问题是我没有应用程序“make”。

Apparently its not installed by default on Cygwin and eclipse doesn't give any indication for that... 显然它没有默认安装在Cygwin和eclipse上没有给出任何指示......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM