Witam mam problem ze skompilowaniem programu z książki.
Używam Atmegi88.
Tutaj zamieszczam logi z konsoli
Kod:
16:42:52 **** Build of configuration Release for project 7_seg ****
make all
Building file: ../d_led.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega88pa -DF_CPU=8000000UL -MMD -MP -MF"d_led.d" -MT"d_led.o" -c -o "d_led.o" "../d_led.c"
../d_led.c: In function '__vector_14':
../d_led.c:56:3: warning: implicit declaration of function 'pmg_read_byte' [-Wimplicit-function-declaration]
LED_DATA = pmg_read_byte( &cyfry[cy1]);
^
Finished building: ../d_led.c
Building file: ../main.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega88pa -DF_CPU=8000000UL -MMD -MP -MF"main.d" -MT"main.o" -c -o "main.o" "../main.c"
Finished building: ../main.c
Building target: 7_seg.elf
Invoking: AVR C Linker
avr-gcc -Wl,-Map,7_seg.map -mmcu=atmega88pa -o "7_seg.elf" ./d_led.o ./main.o
./d_led.o: In function `__vector_14':
d_led.c:(.text.__vector_14+0x62): undefined reference to `pmg_read_byte'
collect2.exe: error: ld returned 1 exit status
make: *** [7_seg.elf] Błąd 1
16:42:52 Build Finished (took 533ms)
A tutaj kod tego pliku
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.