napisalem taka oto funkcje
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
niestety mam blad i nie wiem co robie nie tak. blad po kompilacji jest taki:
22:53:53 **** Incremental Build of configuration Release for project led ****
make all
'Building file: ../main.c'
'Invoking: AVR Compiler'
avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=attiny24 -DF_CPU=8000000UL -MMD -MP -MF"main.d" -MT"main.o" -c -o "main.o" "../main.c"
../main.c: In function 'odbierz_dane':
../main.c:150:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
'Finished building: ../main.c'
' '
'Building target: led.elf'
'Invoking: AVR C Linker'
avr-gcc -Wl,-Map,led.map -Wl,--gc-sections -mmcu=attiny24 -o "led.elf" ./mux_led/mux_led.o ./main.o
./main.o: In function `main':
main.c:(.text.startup.main+0xac): undefined reference to `REJ_BUF'
collect2.exe: error: ld returned 1 exit status
make: *** [led.elf] Błąd 1
22:53:56 Build Finished (took 2s.936ms)
co robie nie tak?