Hallo Miteinander, habe da ein kleines Problem mit dem makefle, bekomme immer eine Fehlermeldung: > "make.exe" all -------- begin -------- avr-gcc (WinAVR 20090313) 4.3.2 Copyright (C) 2008 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 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 -MMD -MP -MF .dep/main.o.d main.c -o main.o main.c:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'main' make.exe: *** [main.o] Error 1 > Process Exit Code: 2 > Time Taken: 00:01
Wieso "Code 2". Wenn Du genau hinschaust, ist das eine Fehlermeldung des Compilers und nicht von make. Also, mal Zeile 6 angucken.
>Wieso "Code 2". Oh. Habe ich übersehen. > Process Exit Code: 2 Aber egal. Das Hauptproblem ist der Syntaxfehler.
main.c:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'main' Das ist der Fehler, den der Compiler anmeckert, was wiederum make dazu veranlasst, statt Exit Code 0 (0 = alles in Ordnung) mit Exit Code 2 (2 = da stimmt was nicht) zu beeenden.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.