Hi...

On Wed, Aug 18, 2010 at 23:12, Tapas Mishra <[email protected]> wrote:
> When I compiled it as
>
>
> gcc -Wall -DMODULE -D__KERNEL__  -DLINUX -c sample2.c[/code]
>
> I got following error
>
>
> sample2.c:3:26: error: linux/module.h: No such file or directory

IMO it's because you forgot to tell gcc on where to look for kernel
headers. Try to use -I (man gcc for complete description)

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to