工具/软件:Code Composer Studio
您好!
我尝试使用"Organize Include"快捷方式 Ctrl+Shift+O、但该函数未包含某些 include、并且在我构建 CCS 时会生成大量"未识别的识别器"错误。
有什么想法如何解决这个问题?
此致。
Frederic
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio
您好!
我尝试使用"Organize Include"快捷方式 Ctrl+Shift+O、但该函数未包含某些 include、并且在我构建 CCS 时会生成大量"未识别的识别器"错误。
有什么想法如何解决这个问题?
此致。
Frederic
Frederic、
我发现该功能实际上不像#include ""
它将用#include <>替代这些路径、有时会插入相对路径。
例如、它将采用以下方法:
/* for usleep()*/ #include #include #include /*驱动程序头文件*/ #include /*驱动程序配置*/ #include "ti_drivers_config.h"
并将其转换为:
/* for usleep()*/ #include #include #include #include
因此、它将它们组合在一起、并删除了一些注释。 此外、还将"ti_drivers_config.h"更改为 。 我认为它不像""那样、它可能会拾取源文件的本地文件、也可能会沿着搜索路径拾取文件、并且它可能会在不修改源文件的情况下发生更改。 在这里、这对我来说仍然是很好的、因为/syscfg 上方的文件夹位于我的搜索路径中。
一般来说、我不是该功能的大粉丝、因为我喜欢以自己的方式组织我的 include 路径。 此处提供了有关该功能工作原理的更多详细信息:
https://www.eclipse.org/community/eclipse_newsletter/2013/october/article3.php
请注意、要在 CCS 中查看首选项对话框中显示的选项、您需要单击底部的显示高级设置。
如果要撤消已完成的操作、可以使用本地历史记录功能。
https://www.youtube.com/watch?v=vIdb7vKpSts&t=14s
此致、
John