lkml.org 
[lkml]   [2000]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: hello world module no longer compiles?!
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/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.045 / U:0.868 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site