o.K also bei mir kommt dann immer dieser Fehler.Code:#include "asuro.h" int main (void) { DDRB |= (1<<PB0) PORTB |= (1<<PB0) PORTB &= ~(1<<PB0) while(1); return 0; }
Wer nochmal nachgucken will, dass Programm befindet sich auf Seite 50.Code:avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o In file included from asuro.h:34, from test.c:1: c:/winavr-20090313/lib/gcc/../../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete. Use <avr/interrupt.h>." test.c: In function 'main': test.c:6: error: called object '1' is not a function test.c:7: error: called object '1' is not a function test.c:8: error: expected ';' before 'while' make: *** [test.o] Error 1 > Process Exit Code: 2 > Time Taken: 00:01







Zitieren

Lesezeichen