This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Fool Question
- To: "Paredes, Jefferson SECUADO-FNE4" <JEFFERSON dot J dot PAREDES at SECUADO dot SHELL dot com>
- Subject: Re: Fool Question
- From: John Clarke <johnc at vastsystems dot com dot au>
- Date: Thu, 24 Feb 2000 11:38:15 +1100
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- References: <915D3BA5A2CAD2118A3800805FC142F31B7B40@GUQ1002>
On Wed, Feb 23, 2000 at 02:19:56PM -0500, Paredes, Jefferson SECUADO-FNE4 wrote:
You need link with libgcc.a, crt0.o and libc.a. If you compile and link
in one step like this:
h8300-hms-gcc -o temp temp.c
it should compile and link successfully. If you compile and link in
separate steps like you did, then you need to tell ld to include these
files, like this:
h8300-hms-ld -o temp temp.o /path/to/crt0.o -lgcc -lc
(crt0.o is in $(GCC_EXEC_PREFIX)/../../h8300-hms/lib/)
If you still can't get it to work, let me know what happens and I'll help
you further.
Cheers,
John
--
whois !JC774-AU@whois.aunic.net