问题:
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/