Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/devices/devices/10.html
Дата изменения: Thu Mar 23 12:37:17 2000
Дата индексирования: Wed Sep 15 04:21:21 2010
Кодировка:

Поисковые слова: hst
Hardware Interface I/O Access 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 <tmoore@solbrn.dseg.ti.com>

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


Messages

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