|
From: | Timothy Smith |
Subject: | Re: [avr-gcc-list] very simple program |
Date: | Sun, 02 Oct 2005 22:44:51 +1000 |
User-agent: | Mozilla Thunderbird 1.0.7 (X11/20051002) |
Timothy Smith wrote:
i'm learning the in's and out's of microcontroller programming, but i've run into a really fundamental problem. i get the following error when i attempt to use _BV to shift a shit and set port b pin 0 to output4: undefined reference to `__stack' and here is my code #include <avr/io.h> int main(void){ while (1) { DDRB = _BV(PB0); }; } _______________________________________________ AVR-GCC-list mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
lol sorry it was not ment to say "shift a shit". send THAT one to bash.org or something. what i meant to say was "shift a BIT"
[Prev in Thread] | Current Thread | [Next in Thread] |