Hallo Miteinander,

habe da ein kleines Problem mit dem makefle, bekomme immer eine Fehlermeldung.
Code:
> "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: 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 -MD -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
Code:
#include <avr/io.h>


void delay(unsigned int ms);

Void main (void)
{
//PORTB Ausgang
DDRB = 0XFF;
while (1)
{
//PORTB ein
PORTB |=1;

delay(500);

//PORTB aus
PORTB &=0;

delay(500);
}
return 1;
}

void delay(unsigned int ms)
{
	unsigned int zaehler;
	
	while (ms)
	{
		zaehler = 3000;
		
		while (zaehler)
		{
			asm volatile ("nop");
			zaehler--;
		}
		ms--;
	}
}