Hello,
I am using the latest slackware post (linux v1.0). I am trying to
compile a "Device" driver that needs to make "out" assembler calls to write
to various ports. I found the "outb" etc. functions in <asm/io.h> and am
using them as follows:
#include <asm/system.h>
#include <asm/io.h>
...
main() {
outb(0x36, 0x1BB);
outb(0x76, 0x1BB);
outb(0xB6, 0x1BB);
...
the problem is that when i compile i get:Quote:}
/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outb referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outb referenced from text segment
/tmp/cca069721.o: Undefined symbol ___outbc referenced from text segment
for every call to "outb" :/
I have checked every "*.h" file on the system, and i have linked with every
"lib*.a" file i could find. I have rebuilt the kernel which uses these calls
and recieved none of these error messages. Does anyone know how to link these
calls? Am i missing something completely obvious (don't answer that! ;)
any help would be GREATLY appreciated as being able to do this is central to
the completion of my senior project!!! :}
Thank you,
Ron Skopitz
(please respond to this address
if sending e-mail!)