lkml.org 
[lkml]   [1999]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectKernel modules in 2.1/2.2..

I just purchased O'Reilly publishing's book Linux Device Drivers, and none
of the simple examples will work. They come back with an unresolved symbol
for printk.

Compile command is :
cc -D__KERNEL__ -DMODULE -c hello.c -o hello.o

It compiles fine, but insmod and depmod both find the unresolved symbols.

No examples show what I need to link with or define in order for it to
work. The book is only updated to kernel version 2.1.43..

Any suggestions?

Please CC to nkirsch@biznatch.nick.org

Thanks,
Nick


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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