ściągłem wszystko z
https://mirekk36.blogspot.com/2015/07/e ... ogram.htmli teraz inne projekty działają a mój projekt z pierwszego postu pokazuje make: *** [b.elf] Error 1
Cytuj:
19:00:20 **** Build of configuration Release for project b ****
make all
'Building file: ../I2CTWI.c'
'Invoking: AVR Compiler'
avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=1000000UL -MMD -MP -MF"I2CTWI.d" -MT"I2CTWI.o" -c -o "I2CTWI.o" "../I2CTWI.c"
'Finished building: ../I2CTWI.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=atmega32 -DF_CPU=1000000UL -MMD -MP -MF"main.d" -MT"main.o" -c -o "main.o" "../main.c"
../main.c: In function 'main':
../main.c:45:1: warning: implicit declaration of function 'i2cInit' [-Wimplicit-function-declaration]
i2cInit(); //inicjalizacja i2c
^
../main.c:46:1: warning: implicit declaration of function 'PCF8583_init' [-Wimplicit-function-declaration]
PCF8583_init(); //inicjalizacja scalaka pcf8583
^
../main.c:47:1: warning: implicit declaration of function 'PCF8583_set_time' [-Wimplicit-function-declaration]
PCF8583_set_time( 19, 17, 1, 0 ); //ustawienie czasu
^
../main.c:48:1: warning: implicit declaration of function 'PCF8583_set_date' [-Wimplicit-function-declaration]
PCF8583_set_date( 6, 2, 2012 ); //ustawienie daty
^
../main.c:49:1: warning: implicit declaration of function 'LCD_start' [-Wimplicit-function-declaration]
LCD_start();
^
../main.c:54:1: warning: implicit declaration of function 'PCF8583_get_time' [-Wimplicit-function-declaration]
PCF8583_get_time( &godz, &min, &sek, &hsek ); //pobranie czasu
^
../main.c:55:1: warning: implicit declaration of function 'PCF8583_get_date' [-Wimplicit-function-declaration]
PCF8583_get_date( &dzien, &miesiac, &rok ); //pobranie daty
^
../main.c:57:1: warning: implicit declaration of function 'LCD_uint8xy' [-Wimplicit-function-declaration]
LCD_uint8xy(sek, 0, 0); //wyświetlenie sekund
^
../main.c:60:1: warning: implicit declaration of function 'LCD_uint16xy' [-Wimplicit-function-declaration]
LCD_uint16xy(rok, 0, 1); //wyświetlenie roku
^
'Finished building: ../main.c'
' '
'Building target: b.elf'
'Invoking: AVR C Linker'
avr-gcc -Wl,-Map,b.map -mmcu=atmega32 -o "b.elf" ./LCD/lcd44780.o ./I2CTWI.o ./main.o
./main.o: In function `main':
main.c:(.text.startup.main+0x20): undefined reference to `i2cInit'
main.c:(.text.startup.main+0x24): undefined reference to `PCF8583_init'
main.c:(.text.startup.main+0x38): undefined reference to `PCF8583_set_time'
main.c:(.text.startup.main+0x48): undefined reference to `PCF8583_set_date'
main.c:(.text.startup.main+0x4c): undefined reference to `LCD_start'
main.c:(.text.startup.main+0x60): undefined reference to `PCF8583_get_time'
main.c:(.text.startup.main+0x70): undefined reference to `PCF8583_get_date'
main.c:(.text.startup.main+0x8e): undefined reference to `LCD_uint8xy'
main.c:(.text.startup.main+0xa0): undefined reference to `LCD_uint8xy'
main.c:(.text.startup.main+0xb2): undefined reference to `LCD_uint8xy'
main.c:(.text.startup.main+0xc6): undefined reference to `LCD_uint16xy'
main.c:(.text.startup.main+0xd8): undefined reference to `LCD_uint8xy'
main.c:(.text.startup.main+0xea): undefined reference to `LCD_uint8xy'
collect2.exe: error: ld returned 1 exit status
make: *** [b.elf] Error 1
19:00:21 Build Finished (took 692ms)