Okay nun ein anders Problem:
Ich habe jetzt den mit myAVR Workpad funktionierenden Code in winAVR übernommen und möchte es compilieren. Wenn ich über Tool-> make all starte, erhalte ich folgende Fehlermeldung:
Was genau fehlt meinem winavr noch? Müsste irgend ein Include sein, oder?Code:> "make.exe" all -------- begin -------- avr-gcc (GCC) 4.1.2 (WinAVR 20070525) 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. Size before: AVR Memory Usage ---------------- Device: atmega8 Program: 150 bytes (1.8% Full) (.text + .data + .bootloader) Data: 0 bytes (0.0% Full) (.data + .bss + .noinit) Compiling C: main.c avr-gcc -c -mmcu=atmega8 -I. -gdwarf-2 -DF_CPU=3686400UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./main.lst -std=gnu99 -Wundef -MMD -MP -MF .dep/main.o.d main.c -o main.o main.c:14:1: warning: "F_CPU" redefined <command line>:1:1: warning: this is the location of the previous definition main.c: In function 'main': main.c:34: error: 'true' undeclared (first use in this function) main.c:34: error: (Each undeclared identifier is reported only once main.c:34: error: for each function it appears in.) make.exe: *** [main.o] Error 1 > Process Exit Code: 2 > Time Taken: 00:01







Zitieren

Lesezeichen