Gast
#6568787
Hallo, Ich brauche mal Hilfe: Compiler ist der AVR-GCC 4.9.2 Ich habe eine Datei "test.c" mit folgendem Inhalt: // ----------------------- int main(void) { while (1); } // ---------------------- (Also keinerlei includes oder andere .h oder .c files im Spiel) Beim Compilen bekomme ich folgeneden Fehler: avr-gcc -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -W -Wstrict-prototypes -Wa,-ahlms=test.o test.o test.o --output test.elf -Wl,-Map=test.map,--cref -lm test.o: In function `main': E:\Users\user\Desktop\test/test.c:3: multiple definition of `main' test.o:E:\Users\user\Desktop\test/test.c:3: first defined here collect2.exe: error: ld returned 1 exit status make.exe: *** [test.elf] Error 1 > Process Exit Code: 2 > Time Taken: 00:00 Was ist das ????