我正在尝试配置 Eclipse 以在 Ubuntu 下开发 Linux 内核模块。到目前为止,我已经从目录 添加到
但它并没有从我的代码中删除所有的Properties
> Paths and Symbols
> Includes
> GNU C
header >/usr/src/'uname -r'/include语法错误
。
之后,我的代码如下所示:
我还应该做些什么才能愉快地开发内核模块?
最佳答案
如果您有兴趣,那些橙色波浪线实际上是索引器标记。通过转到 window/preferences/general/editors/text editors/annotations 关闭它们,选择 c/c++indexer markers 并取消选中“text as”。
此外,这已发布在 Eclipse wiki 上:http://wiki.eclipse.org/HowTo_use_the_CDT_to_navigate_Linux_kernel_source
关于linux - 为 Linux 内核模块开发配置 Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22168095/