c++ - Eclipse错误: Unresolved Inclusion

标签 c++ c eclipse eclipse-cdt

我知道这个问题已经被问了很多次,但我不知道这里出了什么问题。

我在 C:\svn\org.eclipse.tcf.agent\agent\tcf\framework 中找到了一些头文件,其中包含编译示例程序所需的所有文件。

我通过打开项目属性、C/C++ 常规、路径和符号、包含并在其中添加路径来包含此路径。

Eclipse 找不到任何这些头文件。

enter image description here

结果是:

Eclipse doesn't find any of these header files

目录:

enter image description here

有人可以帮我吗?

<小时/>

错误日志:

10:23:21 **** Incremental Build of configuration Default for project org.eclipse.tcf.examples.daytime.agent ****
make all 
The system cannot find the path specified.
'uname' is not recognized as an internal or external command,
operable program or batch file.
'grep' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, uname -m, ...) failed.
The syntax of the command is incorrect.
make: *** [obj///Debug/tcf/main/main.o] Error 1
Makefile:26: recipe for target 'obj///Debug/tcf/main/main.o' failed

最佳答案

查看 #include 语句中的路径。显然,您应该将 C:\svn\org.eclipse.fct.agent\agent 添加到包含路径,而不是该目录的子目录。

关于c++ - Eclipse错误: Unresolved Inclusion,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20262221/

相关文章:

c - strtok 不断返回相同的单词

java - 如何从 Eclipse 的动态 Web 项目路径中读取文件?

c++ - 多个 QWidets 合并为一个 QMainWindow

c++ - preempt_disable/enable 和 raw_local_irq_save/restore 在基准测试中的作用

c++ - strstr 总是返回 null

c - 如何确保 malloc/free fopen/fclose 匹配?

java - eclipse中的文件IO

java - 在类路径文件中找不到自动测试的问题

c++ - 如何将带有转义字符的 C/C++ 字符串转换为普通(原始)字符串

c++ - 无法使用 {fmt} 库在一个字符串中格式化两个 float