So, weitestgehend läuft mein Eclipse jetzt. Die Librarys habe ich auch eingebunden. Allerdings bekommt ich bei meinem erste Programm folgende Fehlermeldung:
Code:
**** Build of configuration Release for project bot6 ****
make all
Building file: ../hw6.c
Invoking: AVR Compiler
avr-gcc -I/home/hellmann/files/rp6libs -Wall -Werror -Os -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -v -mmcu=atmega32 -DF_CPU=8000000UL -MMD -MP -MF"hw6.d" -MT"hw6.d" -c -o"hw6.o" "../hw6.c"
Es werden eingebaute Spezifikationen verwendet.
Ziel: AVR
Konfiguriert mit: /var/tmp/cross/avr/portage/cross-avr/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/avr/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/avr/4.1.2/include --datadir=/usr/share/gcc-data/avr/4.1.2 --mandir=/usr/share/gcc-data/avr/4.1.2/man --infodir=/usr/share/gcc-data/avr/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/avr/4.1.2/include/g++-v4 --host=i686-pc-linux-gnu --target=avr --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c --enable-shared --disable-threads
Finished building: ../hw6.c
Building target: bot6.elf
Invoking: AVR C Linker
avr-gcc -Wl,-Map,bot6.map -mmcu=atmega32 -o"bot6.elf" ./hw6.o
Thread-Modell: single
gcc-Version 4.1.2 (Gentoo 4.1.2 p1.1)
/usr/libexec/gcc/avr/4.1.2/cc1 -quiet -v -I/home/hellmann/files/rp6libs -MMD hw6.dhw6.o -MFhw6.d -MP -MThw6.d -MQ hw6.o -DF_CPU=8000000UL ../hw6.c -fno-delete-null-pointer-checks -quiet -dumpbase hw6.c -mmcu=atmega32 -auxbase-strip hw6.o -Os -Wall -Werror -version -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -o /tmp/cccCzDbQ.s
nicht vorhandenes Verzeichnis »/usr/lib/gcc/avr/4.1.2/../../../../avr/sys-include« wird ignoriert
#include "..." - Suche beginnt hier:
#include <...> - Suche beginnt hier:
/home/hellmann/files/rp6libs
/usr/lib/gcc/avr/4.1.2/include
/usr/lib/gcc/avr/4.1.2/../../../../avr/include
Ende der Suchliste.
GNU C Version 4.1.2 (Gentoo 4.1.2 p1.1) (avr)
kompiliert von GNU-C-Version 4.1.2 (Gentoo 4.1.2 p1.1).
GGC-Heuristik: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4fcd2811d1ba1df6f28f76c8bac03ce2
/usr/libexec/gcc/avr/as -mmcu=atmega32 -ohw6.o /tmp/cccCzDbQ.s
./hw6.o: In function `main':
hw6.c:(.text+0x0): undefined reference to `initRobotBase'
hw6.c:(.text+0x8): undefined reference to `writeString'
make: *** [bot6.elf] Fehler 1
Das Programm sieht so aus:
Code:
#include "RP6RobotBaseLib.h"
int main(void)
{
initRobotBase();
writeString("Hallo Welt!\n");
return 0;
}
Lesezeichen