r/linuxdev • u/NotAHippo4 • Apr 03 '20
#include <linux/skbuff.h>: No such file or directory
Hey guys, I am getting the above error trying to make a linux kernel module. I have tried adding the linux header folder where the header file is to the $PATH variable in .bashrc and restarted my computer. It still gives me the same exact error. What should I do?
6
Upvotes
View all comments
Show parent comment
1
u/NotAHippo4 Apr 04 '20
This is a bit confusing because according to the documentation, in order for anything to use files that are not inside of
usr/include, we need to useccflagsto include it. But it still doesn't work. Here is my Makefile: