Problem with compiling and linking separately

David Edelsohn dje at watson.ibm.com
Tue Jul 20 04:27:44 EST 1999


	You should be using the compiler, powerpc-linux-gcc, to perform
the link regardless of whether you are performing the link in a separate
step.  The link step involves more than just -lc.  You are omitting
important, additional commands to the linker by trying to invoke the
linker directly.  Either use GCC for the link or look at the verbose
output of GCC and learn the additional flags and libraries and object
files that must be passed to the linker.  For instance, you are omitting
the crt0 start files.

David

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]





More information about the Linuxppc-dev mailing list