Gast
#76956
Hallo, habe mir von AVRFreaks, die DS1820 Library gezogen. Beim linken kommt es dann zu folgendem Problem: <schnippschnapp> one_wire.o(.text+0x30): In function `ow_write_byte': C:\dth\ulbc/one_wire.c:108: undefined reference to `_PC_' one_wire.o(.text+0x30):C:\dth\ulbc/one_wire.c:108: relocation truncated to fit: R_AVR_13_PCREL PC one_wire.o(.text+0x4c):C:\dth\ulbc/one_wire.c:108: undefined reference to `_PC_' one_wire.o(.text+0x4c):C:\dth\ulbc/one_wire.c:108: relocation truncated to fit: R_AVR_13_PCREL PC one_wire.o(.text+0x64): In function `ow_read_byte': C:\dth\ulbc/one_wire.c:127: undefined reference to `_PC_' one_wire.o(.text+0x64):C:\dth\ulbc/one_wire.c:127: relocation truncated to fit: R_AVR_13_PCREL PC ds1820.o(.text+0x94): In function `ds1820_get_temp': C:\dth\ulbc/ds1820.c:120: undefined reference to `_PC_' ds1820.o(.text+0x94):C:\dth\ulbc/ds1820.c:120: relocation truncated to fit: R_AVR_13_PCREL PC ds1820.o(.text+0xe6):C:\dth\ulbc/ds1820.c:132: undefined reference to `_PC_' ds1820.o(.text+0xe6):C:\dth\ulbc/ds1820.c:132: relocation truncated to fit: R_AVR_13_PCREL PC make: *** [ulbc.elf] Error 1 </schnippschnapp> Die LDFLAGS im Makefile sehen wie folgt aus : LDFLAGS = -Wl,-Map=$(<:.o=.map),--cref -mmcu=$(MCU) -lm Weiss jemand Rat, Jörg ich baue auf Dich.... Gruß Dominic