makefile Fehler: Code: 2

Gast #1408840
Lesenswert?

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
Gast #1408993
Lesenswert?

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.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren