This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Fool Question


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

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