Zitat:
mathias@mathias-laptop:~/Desktop/avr.programing/avr-gcc/mytest$ make
-------- begin --------
avr-gcc (GCC) 4.1.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Linking: LED_Test.elf
avr-gcc -mmcu=atmega32 -I. -gstabs -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=LED_Test.o -std=gnu99 -Wundef -MMD -MP -MF .dep/LED_Test.elf.d LED_Test.o --output LED_Test.elf -Wl,-Map=LED_Test.map,--cref -lm
LED_Test.o: In function `main':
LED_Test.c:15: undefined reference to `i2c_init'
LED_Test.c:17: undefined reference to `i2c_start'
LED_Test.c:25: undefined reference to `i2c_start_wait'
LED_Test.c:26: undefined reference to `i2c_write'
LED_Test.c:27: undefined reference to `i2c_stop'
LED_Test.c:25: undefined reference to `i2c_start_wait'
LED_Test.c:26: undefined reference to `i2c_write'
LED_Test.c:27: undefined reference to `i2c_stop'
LED_Test.c:25: undefined reference to `i2c_start_wait'
LED_Test.c:26: undefined reference to `i2c_write'
LED_Test.c:27: undefined reference to `i2c_stop'
LED_Test.c:25: undefined reference to `i2c_start_wait'
LED_Test.c:26: undefined reference to `i2c_write'
LED_Test.c:27: undefined reference to `i2c_stop'
LED_Test.c:19: undefined reference to `i2c_stop'
make: *** [LED_Test.elf] Fehler 1
Woran liegt das? Die Methoden liegen in i2cmaster.h, was ja auch included ist.