Re: linux/module.h does not exist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...

On Wed, Aug 18, 2010 at 23:12, Tapas Mishra <mightydreams@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux