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

insmod error on FC2?



Hello,fedora-list

Source:
#define MODULE
#include <linux/module.h>
int init_module(void) {printk("<1>Hello,world\n");return 0;}
void cleanup_module(void) {printk("<1>Goodbye cruel world\n");}

It is the first demo of book "The linux device driver". then,
gcc -c hello.c
insmod ./hello.o
then an error occured:
insmod error inserting "hello.o": -l Invalid module fromat

why?

Thank you!	

 				

        littertiger
        tiger_zsch 163 com
          2004-06-19






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