[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Module compilation error



Hi all
	I was trying to write a module. I tried compiling it by doing

gcc -D__KERNEL__ -DMODULE -Wall -c file.c -o file.o

but i get the following error:

from /linux/module.h
included from file.c: /linux/autoconf.h does not exist

In the code I have :
 #include<linux/module.h>
 #include<linux/version.h>
#include<linux/kernel.h>

What might the problem be ?

Reagards
Narasimhamurthy Giri, Clemson University Computer Science Dept.
-------------------------------------------------------------------------------
Judge not lest ye be judged yourself.
-------------------------------------------------------------------------------





Reply to: