linux下编写驱动找不到linux/module.h头文件
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
刚学linux下驱动编写,第一天照着CSDN上教程编写,发现没有问题,但是第二天又写了一个.c文件,编译时提醒找不到linux/module.h头文件
百思不得其解!!看了对比原代码没有问题。
最终原来是Makefile 写的出了问题
obj-m:=__.o才对啊!! 居然少了个等号,很奇怪为甚么少了个等号也能编译。
最终加上=后编译成功!!




A beautiful web dashboard for Linux
最近提交(Master分支:19 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)