I need to write a driver using inb() and outb(). I am struggling with compiling a simple test program to test these fuctions. (1.) If I use gcc -o -DMODULE -D__KERNEL__ -c myfile.c I do not understand how to use the resulting file created -DMODULE. (2.) If I use gcc -o tst tst.c the following fail appears. undefined reference to __inbc undefeined reference to __inb
What I expected was a executable program to run from the command line.
Thanks Terry M. email@example.com