Re: nosound module

Hans Lermen (lermen@elserv.ffm.fgan.de)
Sun, 12 Jan 1997 13:57:29 +0100 (MET)


On Sun, 12 Jan 1997, Tuomas Heino wrote:

> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -DMODULE -DMODVERSIONS -include /usr/src/linux-2.1.17/include/linux/modversions.h -o ~tbittih/src/nosound.o ~tbittih/src/nosound.c
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x57): undefined reference to `main'

Your gcc line is missing some important flags:

-c to tell gcc to just do a compile (not link)
-D__KERNEL__ to tell the headerfiles that this is kernel code

Hans
<lermen@fgan.de>