Gast
#180462
Hallo, ich starte gerade neu mit einem Atmel Mega16 und habe mir entsprechend zum programmieren das WinAVR geladen und installiert. Wenn ich den Tutorials folge müßte die Initialisierung der Ports z.B. wie folgt möglich sein: outp(0x00, DDRA); Ich habe mein "Programm" bis auf diese Zeile zuzüglich main Fnk. gekürzt und Compiler und Linker geben folgende Fehlermeldungen/Warnungen heraus: > "make.exe" all -------- begin -------- avr-gcc (GCC) 3.4.3 Copyright (C) 2004 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. Compiling: main.c avr-gcc -c -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 -MD -MP -MF .dep/main.o.d main.c -o main.o main.c: In function `main': main.c:8: warning: implicit declaration of function `outp' Linking: main.elf avr-gcc -mmcu=atmega16 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.o -std=gnu99 -MD -MP -MF .dep/main.elf.d main.o --output main.elf -Wl,-Map=main.map,--cref -lm main.o(.text+0x12): In function `main': C:\WinAVR\examples\frk/main.c:8: undefined reference to `outp' make.exe: *** [main.elf] Error 1 > Process Exit Code: 2 Ich habe überprüft das derCompiler die includes findet -> OK, ansonsten hab ich keine Idee mehr - vielleicht kann mir ja einer von Euch einen Tipp geben. schon mal ein DANKE für alle Antworten. Andreas