Error in the FAQ?

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

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux