Gast
#485719
Hallo, Ich hab heute von jemandem ein Programm zugeschikt bekommen plus das dazugehörige Makefile. Ich habs bis jetz immer über die "Eingabeaufforderung" von WinXP gemacht. Dann in den Ordner, wo das Programm und das Makefile liegt und dann "make all". "make.exe" all set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=pks.lst pks.c \ | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > pks.d; \ [ -s pks.d ] || rm -f pks.d -------- begin -------- avr-gcc --version avr-gcc (GCC) 3.4.6 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. avr-gcc -c -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=pks.lst pks.c -o pks.o In file included from pks.c:34: D:/Programme/WinAVR/avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." pks.c: In function `__vector_1': pks.c:415: warning: implicit declaration of function `abs' pks.c: At top level: pks.c:470: warning: return type defaults to `int' pks.c:470: warning: function declaration isn't a prototype pks.c: In function `INTERRUPT': pks.c:543: warning: control reaches end of non-void function pks.c: In function `__vector_11': pks.c:930: warning: implicit declaration of function `inp' avr-gcc -mmcu=atmega8 -I. -g -O1 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=pks.o pks.o --output pks.elf -Wl,-Map=pks.map,--cref -lm pks.o: In function `__vector_11': D:\Dokumente und Einstellungen\Horti\Eigene Dateien\AVR/pks.c:930: undefined reference to `inp' make.exe: *** [pks.elf] Error 1 Process Exit Code: 2 Es werden ein Paar Dateien erstellt, aber nich die *.hex-Datei, die ich zum Proggen brauche... Ich hab das Makefile mal drann gehängt. Kann mir einer von euch sagen, was ich da falsch gemacht habe???