微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Eclipse-Cygwin 中未解决的包含 - #include <stdio.h>

如何解决Eclipse-Cygwin 中未解决的包含 - #include <stdio.h>

我一直在尝试使用 cygwin64(在 Windows 10 和 Eclipse 20-21 上)测试程序,因为我的目标是 Linux 实时系统,我已经安装了 cygwin64 并按照本文档 (https://www.eclipse.org/4diac/documentation/html/installation/cygwin.html) 。我必须在windows中添加环境

Cygwin path in environment pic

仍然我的包含 #include<stdio.h>#include <stdlib.h> 等表示未解决

unresolved inclusion pic

我通过转到 cmd 并提供 bash 来检查是否安装了 Cygwin。正确返回

我的路径变量是这样的

Path variables pics

我的工具链设置是这样的

Tool chain pic

这是我的构建报告

15:52:34 **** Incremental Build of configuration Debug for project udpexx1 ****
Info: Internal Builder is used for build
gcc "-IC:\\cygwin64" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\udpexx1.o" "..\\src\\udpexx1.c" 
Cannot run program "gcc": Launching Failed

Error: Program "gcc" not found in PATH
PATH=[C:\cygwin64\bin]


15:52:34 Build Finished. 0 errors,0 warnings. (took 94ms)
#####################################################################

有什么我遗漏或需要做的吗?

我的运行配置是这样的

Run configuration pic

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。