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

Re: [rtl] kernel module programming





> Cassia Yuri Tatibana a écrit :
> > Hello,
> >
> > I am studying the kernel modules in order to develop some work in this
> > field later. At the moment I am following the Kernel Programming Guide,
> > wrote by Ori Pomerantz. I mean, I am trying, cause I couldn't make even
> > the hello world module. As I do 'make hello' I got this messages:
> >
> > gcc hello.o -o hello

	Hello Cassia. 

	modules are not executable files. you must compile them with
	
	gcc -c hello.c -o hello.o

	so that the compiler will not generate a executable file but only
a object file, that you must insert into the kernel with insmod hello.o

-----------------------------------------------------------
Luiz Gustavo Bizarro Mirisola
Mestrando em Ciencia da Computacao - IC-Unicamp/LRV-IA-CTI		
MSc Student in Computer Science

mirisola@dcc.unicamp.br
-----------------------------------------------------------