eclipse 无法解析所有包含内容
我正在 eclipse 中开发一个 avr 项目,并包含编译器提供的文件。 Eclipse 识别代码中的包含(即#include 没有问号),但它不解析包含文件中的定义,即PINA 不被识别为内存地址。
我尝试将包含目录添加为路径和符号中的库路径。我尝试将其添加为构建设置的库路径。两者都不起作用。
我正在使用 Eclipse Indigo 和 ImageCraft 编译器。此外,在项目中,我将 imagecraft 的 include 目录作为链接包含在内(以启用搜索)。
有什么想法吗?
I am working on an avr project in eclipse and include files supplied by the compiler. Eclipse recognize the includes in code (i.e. no question mark by the #include) but it does not resolve the defines in the included files, i.e. PINA is not recognized as a memory address.
I've tried to add the include directory as a library path in Paths and Symbols. I've tried to add it as a library path to the build settings. Neither one worked.
I am using Eclipse Indigo and ImageCraft compiler. Furthermore, in the projects I've included imagecraft's include directory as a link (to enable search).
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
项目应创建为标准 C 项目。在“项目”/“属性”/“C/C++ 常规”/“路径和符号”下的“包含”选项卡中。选择添加...并将其指向库路径(在我的例子中:C:\icc7avr\include)。这似乎可以解决大多数项目的问题。
但是我有一个嵌套项目(项目是另一个项目的子集),这不起作用。
Project should be created as a standard C project. Under Project / Properties / C/C++ General / Paths and Symbols in the Includes tab. Choose Add... and point it to the library path (in my case: C:\icc7avr\include). That seems to solve it for most projects.
However I have a nested project (project is a subset of another project) where this doesn't work.