gpt4 book ai didi

c++ - 为什么我在 Eclipse IDE 中收到 "No binary found."错误?

转载 作者:行者123 更新时间:2023-11-30 17:42:05 25 4
gpt4 key购买 nike

尝试运行此命令时:

int main()
{
return 0;
}

我明白

Launch failed. No binary found.  

错误。为什么?我设置了正确的路径(C:\cygwin64\bin)。另外,我也有 Cygwin PE 集。最后,我安装了 devel 包。有什么帮助吗?还出现以下 3 个错误:

G++, gcc and make not found in PATH

最佳答案

尝试安装MinGW相反,它可以与 eclipse 完美配合:只需确保将安装目录设置为 C:\MinGW (目录名称区分大小写)。

然后您必须为您的项目设置编译器:转到 Window -> Prefrences,然后

enter image description here

然后创建一个新项目并为其设置编译器:

enter image description here

在运行程序之前构建项目:项目 -> 构建项目

关于c++ - 为什么我在 Eclipse IDE 中收到 "No binary found."错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20849241/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com