bierdaci 发表于 2003-8-17 20:18:51

为什么没有人回复我?

我照着书上的例子编了一个简单的模块可不能安装,下面提示这样的错误
'./hello.o': kernel-module version mismatch
./hello.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-8

还有我在编译hello.c的时候出现以下提示

warning:implicit declaration of function 'printk'

有人可以告诉这些都是什么意思吗?还有怎么解决这些问题 我用的是红帽子9

Dragonfly 发表于 2003-8-18 22:50:34

there is a post here about a hello.c with makefile and detail instruction on how to compile it. can u search it and work on that?

Dragonfly 发表于 2003-8-18 22:52:08

btw, the title of u post are meaningless. pls use a clear title next time. thx:-D

rocklgk 发表于 2003-9-9 15:00:15

what is printk?the printf is right!!!remmber!
u program shoud include stdlib.h and stdio.h

Dragonfly 发表于 2003-9-10 10:23:52

rocklgk, i am sorry that i have to tell you that he is discussing sth about kernel programming. in this world, no printf, no stdlib, no stdio. only printk.:-D:-):-(

rocklgk 发表于 2003-9-10 11:01:21

:oops::oops::oops: sorry,very sorry.

Dragonfly 发表于 2003-9-10 11:02:48

that is fine. spend some time, u can know:-D:-D:-D

rocklgk 发表于 2003-9-10 11:21:27

THx,i will do that.if i have some problems,i will ask you for help.THx very much.

Dragonfly 发表于 2003-9-11 01:37:30

u are always welcomed.

jamesxuruo 发表于 2003-9-11 11:14:19

does your program have"include module.h"?

nose_roxete 发表于 2003-9-11 12:17:04

hoho, as brother Dragonfly said, there is a lot of materials for ur questions.(i have answered this question in various forums for various person, since i know nothing but this,hoho)
u can just google that or search it in this forum.

Merry Mid-autumn Festival to brother Dragonfly, also to all of u! hoho!

Dragonfly 发表于 2003-9-13 08:42:13

:-D

i should mark that helloworld code as essence, did I?:-D

nose_roxete 发表于 2003-9-13 09:55:37

hoho, maybe you should do that.

Dragonfly 发表于 2003-9-13 23:27:26

here is the one. i remember i had written one as well. but i can not find where it is.
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=24890 :-(
页: [1]
查看完整版本: 为什么没有人回复我?