This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking Problem..


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]