This is the mail archive of the
mailing list for the GCC project.
gcc -Os option
- From: wizard00 <sys_eng00 at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 24 Aug 2006 16:18:08 -0700 (PDT)
- Subject: gcc -Os option
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
View this message in context: http://www.nabble.com/gcc--Os-option-tf2161879.html#a5974772
Sent from the gcc - Dev forum at Nabble.com.