Re: compiling errors

From: Arjan van de Ven (arjanv@fenrus.demon.nl)
Date: Tue Oct 01 2002 - 13:22:04 EST


On Tue, 2002-10-01 at 20:07, immortal1015 wrote:
> I tried to compile the very simple kernel module code as following.
> I compile this code using gcc -c hello.c, but gcc tell me:
> /usr/include/linux /module.h:60 parse error before 'atomic_t'

you are using glibc headers to compile kernel code....

add -I/lib/modules/`uname -r`/build/include
to the gcc flags



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:27 EST