0
我的代码包含如何编译C文件与系统调用
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/syscalls.h>
当我使用标准GCC,它抱怨error: linux/init.h: No such file or directory
。
那么编译这个c文件的正确方法是什么?
http://stackoverflow.com/questions/28423477/linux-init-h-no-such-file-or-direcotry – arsv
你大多是编译一个内核模块,所以你需要准备你的编译环境为那个 – user3528438
如果我成功编译了内核,我应该怎么做才能调用这个c文件? – ThomasWest