avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Suggestion for FAQ entry - LD vs. GCC


From: E. Weddington
Subject: Re: [avr-libc-dev] Suggestion for FAQ entry - LD vs. GCC
Date: Tue, 29 Mar 2005 14:34:44 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Onno Kortmann wrote:

Hi,

- How do I avoid undefined references to __stack and exit?
Linking an AVR program with 'ld' gives an error about an undefined reference to __stack.
If one tries to build an AVR program the usual linux way:

$ avr-gcc -c hello-world.c $ avr-ld -o hello-world.elf hello-world.o

an error occurs:

That's because you're not supposed to do it that way. You're supposed to link by calling avr-gcc, not avr-ld.

Please see the Makefile that is generated by MFile:
<http://www.sax.de/~joerg/mfile/>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]