Ya you were right I tried the following this time gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/ -I /usr/src/linux-headers-2.6.28-11/include/linux/ -c sample2.c Got lesser errors sample2.c:3:26: error: linux/module.h: No such file or directory sample2.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ sample2.c:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ sample2.c: In function ‘init_module’: sample2.c:14: error: ‘main_sys_exit’ undeclared (first use in this function) sample2.c:14: error: (Each undeclared identifier is reported only once sample2.c:14: error: for each function it appears in.) sample2.c:15: error: ‘alt_exit_function’ undeclared (first use in this function) sample2.c: In function ‘cleanup_module’: sample2.c:19: error: ‘main_sys_exit’ undeclared (first use in this function) What next? -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ