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

Error in the FAQ?



Hi,

Total newbie here so please excuse me if I'm wrong but under the "How do 
I compile a module ?" section it says to use a command line such as:

gcc -o mymod.o -Wall -W -O2 -DMODULE -D__KERNEL__ -I/lib/modules/`uname 
-r`/build/include my_mod.c

This only works for me if I put a -c before my_mod.c otherwise I think 
it is trying to build an executable binary, which just happens to be 
called mymod.o.

Anyway thanks for maintaining the site, hopefully I can get my head 
around some of this stuff eventually :)

Geoff

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/