|
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:
That's because you're not supposed to do it that way. You're supposed to link by calling avr-gcc, not avr-ld.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.oan error occurs:
Please see the Makefile that is generated by MFile: <http://www.sax.de/~joerg/mfile/>
[Prev in Thread] | Current Thread | [Next in Thread] |