All of lore.kernel.org
 help / color / mirror / Atom feed
* using ld properly
@ 1999-10-03 19:19 David Riley
  0 siblings, 0 replies; only message in thread
From: David Riley @ 1999-10-03 19:19 UTC (permalink / raw)
  To: linuxppc-dev


How do I use ld properly (with a Makefile)?  I tried "ld -o heyworld
main.o func.o /usr/lib/crt1.o -lc", but it gives me the output file
heyworld, and when I try to do ./heyworld, it says bash:./heyworld:bad
command or filename (or whatever it says).  it works fine if I do "gcc
-o heyworld *.o" to link it, but I want to be able to link using ld
(just to do iot, you know).  I know gcc calls ld by itself (or does
something similar), but doing gcc -verbose did nothing useful for me.

Thanks,
	David

-- 
--"Your mouse has been moved.  Windows 95 must be restarted for change
to take effect."

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-03 19:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-03 19:19 using ld properly David Riley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.