witam
zainstalowałem winavr, przepisałem przykład:
i dostaje:
o co chodzi??
zainstalowałem winavr, przepisałem przykład:
#include <avr/io.h>
#define LED_ON sbi(DDRB,PB1);sbi(PORTB,PB1)
int main (void)
{
LED_ON;
for (;;)
{
}
return (0);
}
i dostaje:
> "make.exe" all
avr-gcc -g -Wall -O2 -mmcu=atmega8 -c -o 1.o 1.c
1.c: In function `main':
1.c:11: warning: implicit declaration of function `sbi'
avr-gcc -g -Wall -O2 -mmcu=atmega8 -Wl,-Map,1.map -o 1.elf 1.o
1.o(.text+0x10): In function `main':
C:\avr_c/1.c:11: undefined reference to `sbi'
1.o(.text+0x1a):C:\avr_c/1.c:11: undefined reference to `sbi'
make.exe: *** [1.elf] Error 1
> Process Exit Code: 2o co chodzi??

