The HyperNews Linux KHG Discussion Pages

Question: Hardware Interface I/O Access

Forum: Device Drivers
Keywords: I/O
Date: Mon, 07 Oct 1996 12:36:40 GMT
From: Terry Moore <>

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.


1. More: You are somewhat confused... by Michael K. Johnson