In article <Pine.LNX.4.21.0010161552160.3748-100000@saturn.homenet> you wrote:
> # kgcc -v -E -dM -Wall -O2 -g -c -o hello.o hello.c
The biggest problem with this is that you use the glibc headers (in
/usr/include) instead of the kernel headers (in /usr/src/linux/include)
kgcc -O2 -I/usr/src/linux/include -D__KERNEL__ -o hello.o hello.c
would be a much better command-line.
Greetings,
Arjan van de Ven
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:09 EST