Witam,
Posiadam projekt od kolegi z forum, któremu wszystko się ładnie kompiluje, a ja po dodaniu go do eclipsa i próbie kompilacji otrzymuje taki błąd:
**** Build of configuration Release for project DS18B20_PCF_LED ****
make all
Building file: ../MK_USART/mkuart.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"MK_USART/mkuart.d" -MT"MK_USART/mkuart.d" -c -o "MK_USART/mkuart.o" "../MK_USART/mkuart.c"
Finished building: ../MK_USART/mkuart.c
Building file: ../I2C_TWI/i2c_twi.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"I2C_TWI/i2c_twi.d" -MT"I2C_TWI/i2c_twi.d" -c -o "I2C_TWI/i2c_twi.o" "../I2C_TWI/i2c_twi.c"
Finished building: ../I2C_TWI/i2c_twi.c
Building file: ../1Wire/crc8.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"1Wire/crc8.d" -MT"1Wire/crc8.d" -c -o "1Wire/crc8.o" "../1Wire/crc8.c"
Finished building: ../1Wire/crc8.c
Building file: ../1Wire/ds18x20.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"1Wire/ds18x20.d" -MT"1Wire/ds18x20.d" -c -o "1Wire/ds18x20.o" "../1Wire/ds18x20.c"
Finished building: ../1Wire/ds18x20.c
Building file: ../1Wire/onewire.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"1Wire/onewire.d" -MT"1Wire/onewire.d" -c -o "1Wire/onewire.o" "../1Wire/onewire.c"
Finished building: ../1Wire/onewire.c
Building file: ../common.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"common.d" -MT"common.d" -c -o "common.o" "../common.c"
Finished building: ../common.c
Building file: ../d_led.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"d_led.d" -MT"d_led.d" -c -o "d_led.o" "../d_led.c"
Finished building: ../d_led.c
Building file: ../komendy_at.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"komendy_at.d" -MT"komendy_at.d" -c -o "komendy_at.o" "../komendy_at.c"
Finished building: ../komendy_at.c
Building file: ../main.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=11059200UL -MMD -MP -MF"main.d" -MT"main.d" -c -o "main.o" "../main.c"
../main.c: In function 'main':
../main.c:85: warning: pointer targets in passing argument 1 of 'UART_RX_STR_EVENT' differ in signedness
Finished building: ../main.c
Building target: DS18B20_PCF_LED.elf
Invoking: AVR C Linker
avr-gcc -Wl,-Map,DS18B20_PCF_LED.map -mmcu=atmega32 -o "DS18B20_PCF_LED.elf" ./MK_USART/mkuart.o ./I2C_TWI/i2c_twi.o ./1Wire/crc8.o ./1Wire/ds18x20.o ./1Wire/onewire.o ./common.o ./d_led.o ./komendy_at.o ./main.o
./common.o: In function `check_and_load_defaults':
common.c:(.text+0x14): undefined reference to `ram_cfg'
common.c:(.text+0x16): undefined reference to `ram_cfg'
common.c:(.text+0x1e): undefined reference to `ram_cfg'
common.c:(.text+0x20): undefined reference to `ram_cfg'
make: *** [DS18B20_PCF_LED.elf] Error 1
**** Build Finished ****
pliki common.c
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
oraz common.h
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.