[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: undefined reference to outb



> I try to compile this file[1] on my ppc sarge. But I get some linking
> errors with some functions (outb,...). This program compiles fine on
> x86. I suspect problems in asm/io.h.

It's not portably written. Unless you absolutely need to access the device
via the IO aperture, just map the corresponding MMIO aperture and replace
the outb by writeb etc. (or just byte-size memory access).

	Michael



Reply to: