未解决的包含wprogram.h

unresolved inclusion WProgram.h

本文关键字:wprogram 包含 未解决      更新时间:2023-10-16

eclipse能够找到iostream,stdio.h and conio.h

,但无法找到wprogram.h

我正在使用CDT上的Windows8上使用Indigo。我能够编译和运行Hello World计划。我还链接了AVR目录。有人知道为什么Eclipse无法找到标头文件吗?

标头文件不存在,或者其目录的路径不在包含路径中。检查项目 ->属性 -> c/c 构建 ->设置 -> inclage->包括路径,并确保wprogram.h在该列表中包含wprogram.h。

Google搜索建议wprogram.h已重命名为arduino.h。尝试包括该文件。

通常不明显哪个文件导致导入旧的(且不存在)Wprogram.h。因此,扫描您的最后一次导入的libs(.h and .c)文件的#Include "Wprogram.h",并替换为#Include "Arduino.h"