Hi all... I am new to kernel module programming. When i am trying to compile a kernel module by the below command
gcc -D __KERNEL__ -D__SMP__ -DMODULE -DMODVERSIONS -I /usr/src/kernels/2.6.35 -45.fc14.i686/include/linux/ -Wall -O2 -o mod1.o -c mod1.c
when i typed this i am getting the follwing error:
fatal error:linux/module.h: no such file or directory
compilation terminated
But the aforemetioned directory is there and the header file module.h in that directiory.
please help me.