This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compile kernel
- From: Pelle Windestam <pelle at windestam dot se>
- To: esmaeil mirzaee <esmaeil dot debian at gmail dot com>
- Cc: kernelnewbies <kernelnewbies at kernelnewbies dot org>, gcc-help at gcc dot gnu dot org
- Date: Fri, 9 Sep 2011 10:55:56 +0200
- Subject: Re: compile kernel
- References: <CAOwGe_zSouipCwYY_9NKe=9C3Eyw0FH9MLPCpZom8v=e8AQfGw@mail.gmail.com>
>
> $ gcc acct.c -o ac
> acct.c:46: fatal error: linux/mm.h: No such file or directory
> compilation terminated.
>
That is because gcc does not know where to look for the included
mm.h-file, the gcc compiler needs to be specifically told where to
look for include files if they are not in the standard directories.
You can do that by passing it the -I option followed by the directory
to look in.