On 1/23/06, Adam Talbot talbotx@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