lkml.org 
[lkml]   [1997]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: nosound module
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>


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.055 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site