[Top][All Lists]

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

[avr-gcc-list] very simple program

From: Timothy Smith
Subject: [avr-gcc-list] very simple program
Date: Sun, 02 Oct 2005 22:21:08 +1000
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051002)

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 output

4: undefined reference to `__stack'

and here is my code

#include <avr/io.h>

while (1) {
       DDRB = _BV(PB0);

reply via email to

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