|
|

楼主 |
发表于 2006-2-15 14:31:07
|
显示全部楼层
还有,我很奇怪出错信息中有乱码。
[root@localhost test]# make
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLinux -c hello.c
In file included from /usr/include/linux/module.h:10,
from hello.c:2:
/usr/include/linux/config.h:5:2: error: #error Incorrectly using glibc headers for a kernel module
hello.c: In function ‘init_module’:
hello.c:11: warning: implicit declaration of function ‘printk’
make: *** [hello.o] Error 1 |
|