hello guys,
i tried compiling a simple module using the following command:gcc -I/usr/src/kernels/2.6.11-1.1369_FC4-i686/include -o hello.cwithout any sucess...
given below was my program...it would be greatful if u can help me with this...:newbie:
thanxs in advance

Maybe you could post the errors you received? I do see that you passed hello.c to gcc. The first line of the code you posted says,

Code:

hello-1.c - The simplest kernel module.

Is your source filed also called hello-1.c by chance?

sanddune008

11-23-2006 10:27 PM

Quote:

Originally Posted by Arow

Maybe you could post the errors you received? I do see that you passed hello.c to gcc. The first line of the code you posted says,

Code:

hello-1.c - The simplest kernel module.

Is your source filed also called hello-1.c by chance?

well did name the module as hello.c.....the error it reported was regaring KERN not declared ......is it bcos i haven't installed the kernel libraries..if it is so then i would be a great help in finding the correct path to the kernel lib...
Thanxs in advance...:newbie:

sanddune008

11-24-2006 03:38 AM

I guess it dosen't have to do anything with the naming of the file..
these r the errors