LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 646|回复: 2

怎么指定module的版本号码

[复制链接]
发表于 2003-8-12 19:00:10 | 显示全部楼层 |阅读模式
自给编译了一个module
gcc -c hello.c -o hello.o
insmod hello.o
insmod的时候提示can't find the kernel version the module was
compliled for
发表于 2003-8-12 20:50:28 | 显示全部楼层
你这个不是要指定module的版本号,而是要在编译时指定内核的版本号。
可以参考这个做法:
http://www.fanqiang.com/a4/b2/20010830/1500001210.html
 楼主| 发表于 2003-8-12 21:49:11 | 显示全部楼层
任然不行

平常编译程序的时候也没有要求知道内核的version
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表