|
小弟刚接触linux设备驱动,编译了一个按键驱动程序,但出现如下的错误,请高手指点一下。。。。
[root@localhost tmp]# arm-linux-gcc -D_KERNEL_ -DMODULE -c buttons.c -o buttons.o -Wall
In file included from buttons.c:2:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/module.h:261: linux/version.h: ?????????
In file included from buttons.c:11:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/irq.h:57: asm/hw_irq.h: ?????????
In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/hardware.h:16,
from buttons.c:14:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/arch/hardware.h:16: asm/mach-types.h: ????????? |
|