|
我按照书上编写了一个简单的模块例子:hello.c
- #define MODULE
- #include <linux/module.h>
- int init_module(void)
- {
- printk("<1> hello world!\n");
- return 0;
- }
- void cleanup_module(void)
- {
- printk("<1> goodbye!\n");
- }
复制代码
很简单也比较傻,可是我用
gcc -c hello.c
编译时,却通过不了:
in file included from /usr/include/linux/module.h:10,
from hello.c:2
/usr/include/linux/config.h:4:28 linux/autoconf.h: no such file or directory
…………………………………………………………
请问这是怎么回事呢?
:thank |
|