[LinuxBIOS] No console, yet... Ideas?
Richard Smith
smithbone at gmail.com
Tue Jan 24 01:09:04 CET 2006
On 1/23/06, Adam Talbot <talbotx at comcast.net> wrote:
> I am missing an inclue or define statment...
>
> 3_5_proto#gcc test.c
> /tmp/ccwX6c0l.o: In function `main':
> test.c:(.text+0x24): undefined reference to `inb'
> test.c:(.text+0x30): undefined reference to `inb'
> collect2: ld returned 1 exit status
#include <sys/io.h>
You also have to compile with -O or -O2 otherwise you will get link
errors. IO is implemented as macros and they don't get linked in
unless optimizations are turned on.
--
Richard A. Smith
More information about the coreboot
mailing list