gcc try.c -o try would give me linking problem

/tmp/ccQOkXtu.o: In function `serial_echo_print':
try.c:(.text+0x31e): undefined reference to `__inb'
try.c:(.text+0x34a): undefined reference to `__outb'
try.c:(.text+0x360): undefined reference to `__inb'
try.c:(.text+0x387): undefined reference to `__outb'
collect2: ld returned 1 exit status
but gcc -Os try.c -o try would be OK /w no error

what's this -Os option? I thought it's only for optimization. 
>From upper error it seems as if missing library. I wouldn't make the
connection between
them.

-- 
View this message in context: 
http://www.nabble.com/gcc--Os-option-tf2161879.html#a5974772
Sent from the gcc - Dev forum at Nabble.com.

Reply via email to