首页 > 解决方案 > Eclipse-Cygwin-#include 中未解决的包含

问题描述

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

环境图片中的 Cygwin 路径

仍然是我的包含#include<stdio.h>#include <stdlib.h>说未解决

未解决的包含图片

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

我的路径变量是这样的

路径变量图片

我的工具链设置是这样的

工具链图片

这是我的构建报告

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)
#####################################################################

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

我的运行配置是这样的

运行配置图片

标签: ccygwineclipse-cdt

解决方案


推荐阅读