Hi,

also mit den WINAVR komm ich bissl durcheinander

Ich gehe so vor:

1. lade ein Programm z.B LineDemo.c mit open in WINAVR

2. ich speichere es in TryFirst als test.c

3. ich mache nun Make (link: Auro_scr/TryFirst/make-al.bat)

4. jetzt kommt dann das...


D:\ASURO\ASURO_src\FirstTry>make all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
[ -s test.d ] || rm -f test.d
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 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 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c -o asuro.o
avr-gcc -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.o test.o asuro.o --output test.elf -Wl,-Map=test.map,--cref -lm
asuro.o(.text+0xae): In function `__vector_14':
D:\ASURO\ASURO_src\FirstTry/asuro.c:75: multiple definition of `__vector_14'
test.o(.text+0x0):\ASURO\ASURO_src\FirstTry/test.c:30: first defined here
C:\WinAVR\bin\..\lib\gcc-lib\avr\3.3.1\..\..\..\..\avr\bin\ld.exe: Warning: size of symbol `__vector_14' changed from 316 in test.o to 208 in asuro.o
C:\WinAVR\bin\..\lib\gcc-lib\avr\3.3.1\..\..\..\..\avr\lib\avr4\crtm8.o(.in it9+0x0): undefined reference to `main'
make: *** [test.elf] Error 1

> Process Exit Code: 2


also ich komm mit den Makefile nicht zurecht

Was mach ich den da alles falsch?!

Danke für eure Hilfe.

Bye Ulli