[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kernel version
try gcc -D_MODULE __KERNEL__ -I/usr......
--- Rupa <rupa.ramakrishna@ionidea.com> wrote:
> In my source file, i have included
> #include <linux/version.h>
> and also i complied using this option
> gcc -D__MODULE__ -I/usr/include/linux-2.4/include -c
> <modulename>
>
> But even then iam getting same error.
>
> Regards,
> R.Rupa
> ----- Original Message -----
> From: Lakshmi Shanmugam
> To: Rupa
> Sent: Friday, July 05, 2002 3:54 PM
> Subject: RE: kernel version
>
>
> Include linux/version.h file
>
> Lakshmi
> -----Original Message-----
> From: kernelnewbies-bounce@nl.linux.org
> [mailto:kernelnewbies-bounce@nl.linux.org]On Behalf
> Of Rupa
> Sent: Friday, July 05, 2002 3:31 PM
> To: kernelnewbies@nl.linux.org
> Subject: kernel version
>
>
> Hello,
>
> I compiled sample kernel module in linux.
> When i tryed to load the module it is showing the
> following error:
> # insmod ./myprog.o
> ./myprog.o: couldn't find the kernel
> version the module was compiled for.
> Can any one help me to load the module.
> Regards,
> R.Rupa
>
>
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/