预处理器包含路径,宏等条目不可用 [英] Preprocessor Include Paths, Macros etc. entry not available

查看:82
本文介绍了预处理器包含路径,宏等条目不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在Eclipse(带有CDT版本9.4.3.201802261533的Oxygen.3a版本(4.7.3a))中浏览项目。该项目已成功构建,但是我无法使用ctrl + LMclick追溯许多功能。

I can't navigate through a project in Eclipse (Oxygen.3a Release (4.7.3a) with CDT version 9.4.3.201802261533). The project is built successfully but I can't trace back many functions using ctrl+LMclick.

我尝试通过在线资源解决问题,但许多建议修改我的项目甚至没有的预处理器包含路径,宏等。这背后的原因是什么,我该如何解决?

I tried fixing the problem from online resources, but many suggested modifying the entry of Preprocessor Include Paths, Macros etc, which my project does not even have. What is the reason behind this and how do I fix it?

由于某种原因,下一项( C / C ++包含路径和符号)显示|找不到包含路径

For some reason, the next entry (C/C++ Include Paths and Symbols) shows that |Include path not found"

当我尝试跟踪函数时,出现在索引中找不到符号 xyz。我已经尝试过重建索引器,但对我来说不起作用。

When I try to trace a function, I get the "Could not find symbol "xyz" in index". I have already tried rebuilding the indexer but it did not work for me.

推荐答案

根据您的项目,您可能需要手动添加工具链的路径。执行以下操作:

Depending on your project, you may need to include the path of the toolchain manually. It wasn't for me. So for my project I did the following:

转到项目–属性– C / C ++包含路径并在其中添加 C:\Program Files(x86)\GNU Tools ARM Embedded\ \5.4 2016q3\arm-none-eabi\inc lude(更改以适合您的安装)。然后刷新,清理并构建项目。最后,重建索引器,这应该可以工作。

Go to Project – Properties – C/C++ Include Paths and add there "C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\arm-none-eabi\include" (change to fit your installation). Then refresh, clean and build the project. Finally, rebuild the indexer and this should work.

这篇关于预处理器包含路径,宏等条目不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆