linux - 为 Linux 内核模块开发配置 Eclipse

标签 linux eclipse kernel

我正在尝试配置 Eclipse 以在 Ubuntu 下开发 Linux 内核模块。到目前为止,我已经从目录 添加到 Properties > Paths and Symbols > Includes > GNU C header >/usr/src/'uname -r'/include 但它并没有从我的代码中删除所有的语法错误

之后,我的代码如下所示:

code after headers added to path

我还应该做些什么才能愉快地开发内核模块?

最佳答案

如果您有兴趣,那些橙色波浪线实际上是索引器标记。通过转到 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/

相关文章:

java - Thales HSM - Windows cp 1252 成功/Linux UTF-8 失败

linux - 查找命令 - 带 -exec 句柄的语法

java - 鼠标光标消失

来自调试器的 Eclipse 超时错误?

c - 宏中未使用的参数会发生什么情况?

linux - 如何从内核代码打印当前寄存器值?

linux - 如何在Gentoo Base System版本1.6.14上安装nodejs?

linux - 可以使用 du 获得正确的文件大小

android - java.lang.nullpointerException错误: app crashes

c - 指针值在函数调用过程中发生变化