Linking Problem..

Alexandre Oliva aoliva@redhat.com
Wed Oct 3 04:35:00 GMT 2001


On Oct  3, 2001, Surya Prakash <suryaprakash@multitech.co.in> 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 http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list