Linking Problem..

Alexandre Oliva
Wed Oct 3 04:35:00 GMT 2001

On Oct  3, 2001, Surya Prakash <> wrote:

> m68k-coff-gcc -mcpu32 -c -Wall hello.c
> m68k-coff-ld  hello.o -o  hello.out

> Why the library routines are not getting linked ?

Because you're not asking to have them linked.

> Am I need to do it
> explicitly in the linker command ?

Only if you use ld for linking.  If you use gcc, it would implicitly
link in libgcc, the C run-time object files and the C library, which
is what you  like to do.

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list