c - 没有找到二进制文件 Eclipse

标签 c eclipse

问题:

No includes folder in the project folder.  
Error: "Launch failed. Binaries not found"

我正在 Eclipse(Eclipse 新手)上编写我的第一个 C 代码,但似乎无法运行它。当我像这样创建一个新项目时 file->new->c project-> 选择空项目 并在工具链中选择 MinGW 并完成。

最后我得到一个空文件夹,没有包含文件夹。从那里我创建一个新的 src 文件夹和一个 .cpp 文件,然后我首先“构建所有”代码然后运行它。毕竟我以 Launch failed 告终。未找到二进制文件。我还检查了 PE Windows Parser 是否打开。此行还带有红色下划线:

 #include <iostream>  

我错过了什么?

最佳答案

this thread 中所述:

If the toolchains show up in "Create C++ project of selected type", then Eclipse has detected them correctly.
The message "Launch failed,binaries not found" means that Eclipse cannot find the application you want to debug/launch! Most of the times this message appears when you forget to build your project before launching or build errors occurred. This can be compiler errors in your code or a missing/wrongly installed toolchain.

因此,当您构建“hello world”时,请检查 Eclipse 控制台窗口中可见的输出。

如果构建失败是因为:

Error launching external scanner info generator (gcc -E -P -v -dD)

,然后查看“Error Launching external scanner info generator - gcc link problem on MingGW”。

关于c - 没有找到二进制文件 Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15778443/

相关文章:

c - C中单引号和双引号的区别

c - 如何在Ubuntu上使用 `c-cpp-reference`?

java - Eclipse - 如何创建类创建的模板

java - 我的类实现了一个接口(interface),但没有覆盖它的抽象方法。为什么 Eclipse 仍然可以毫无问题地编译它?

交叉编译Linux wifi驱动

C——换档动力操作

java - 如何在 SourceViewer 中显示查找替换对话框(快捷键 Ctrl+F)

c++ - Eclipse C++ 索引 boost 需要永远

java - 在 Eclipse 中将项目转换为 Gradle 后无法运行 JUnit 测试用例

c - 在 Windows 上构建 netcat,在源代码中编辑 argv 参数