The HyperNews Linux KHG Discussion Pages
| Next-in-Thread | Next Response | Previous Response | Next Thread |

Question: Hardware Interface I/O Access

Base: Device Drivers
Keywords: I/O
Date: Mon, 07 Oct 1996 12:36:40 GMT
From: tmoore@solbrn.dseg.ti.com (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. tmoore@solbrn.dseg.ti.com


Responses [Embed Depth: 1 2 3 All] [Outline Depth: 1 2 3 9 All]

1. More: You are somewhat confused... (Michael K. Johnson)
a Response to: "Hardware Interface I/O Access"

| Next-in-Thread | Next Response | Previous Response | Next Thread |
| Notification | Copy/Move/Delete | Admin Mode |
| Membership | Help for HyperNews 1.9B5.6 | Frames |