This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linking Libraries?
Gre7g Luterman <gre7g.luterman@gmail.com> writes:
> When I try to link, m68k-elf-ld.exe isn't finding all those stdlib goodies...
You should link with m68k-elf-gcc, not with m68k-elf-ld.
Try using that -v option with m68k-elf-gcc. That will show you
precisely how it is invoking m68k-elf-ld. If you don't see -lc there,
then add it at the end of the m68k-elf-gcc line. You may need to use
-lc -lgcc -lc.
Ian