Gast
#72100
Hi Leute! Habe folgendes Problem: habe für den ATMEGA8(L) ein c-programm geschrieben und compiliert (im DOS: avr-gcc code.c) und es kamen etliche fehlermeldungen (siehe weiter unten)! -> dürfte wahrscheinlich an der header-datei liegen - habe aba leider keine ahnung, von wo ich die bekomme und wo ich sie einbinden muss (welches verzeichnis, etc.!) -> da ich ein blutiger anfänger bin, würde ich euch bitten foglendes zu beachten: "Es gibt keine blöden Fragen, es gibt nur blöde antworten!" ;o) thx, Gruß GreenhornTW code.c:2:61: mega8.h: No such file or directory code.c:20: error: parse error before "RxFlag" code.c:20: warning: data definition has no type or storage class code.c:32: error: `TIM0_OVF' undeclared here (not in a function) code.c:32: error: syntax error before "void" code.c: In function `timer0_ovf_isr': code.c:34: error: `TCNT0' undeclared (first use in this function) code.c:34: error: (Each undeclared identifier is reported only once code.c:34: error: for each function it appears in.) code.c: In function `pd2_int': code.c:47: error: `TCNT0' undeclared (first use in this function) code.c: In function `interrupt': code.c:67: error: `TIFR' undeclared (first use in this function) code.c:67: error: `T0V0' undeclared (first use in this function) code.c:71: error: `GIFR' undeclared (first use in this function) code.c:71: error: `INTF0' undeclared (first use in this function) code.c:73: error: parse error before ')' token code.c: At top level: code.c:78: error: `USART_RXC' undeclared here (not in a function) code.c:78: error: syntax error before "void" code.c: In function `RX_int_isr': code.c:81: error: `UDR' undeclared (first use in this function) code.c: In function `main': code.c:108: error: `PD3' undeclared (first use in this function) code.c:89: warning: return type of `main' is not `int' code.c: At top level: code.c:123: warning: type mismatch with previous implicit declaration code.c:90: warning: previous implicit declaration of `InitSFRs' code.c:123: warning: `InitSFRs' was previously implicitly declared to return `int' code.c: In function `InitSFRs': code.c:125: error: `PortD' undeclared (first use in this function) code.c:126: error: `DDRD' undeclared (first use in this function) code.c:130: error: `TCCR0' undeclared (first use in this function) code.c:131: error: `TCNT0' undeclared (first use in this function) code.c:135: error: `MCUCR' undeclared (first use in this function) code.c:136: error: `GICR' undeclared (first use in this function) code.c:139: error: `TIMSK' undeclared (first use in this function) code.c:147: error: `UCSRA' undeclared (first use in this function) code.c:148: error: `UCSRB' undeclared (first use in this function) code.c:149: error: `UCSRC' undeclared (first use in this function) code.c:150: error: `UBRRH' undeclared (first use in this function) code.c:151: error: `UBRRL' undeclared (first use in this function) code.c: In function `SerSend': code.c:157: error: `UCSRA' undeclared (first use in this function) code.c:157:26: invalid suffix "b00100000" on integer constant code.c:159: error: `UDR' undeclared (first use in this function) code.c: In function `MobilePhoneInit': code.c:166: warning: passing arg 1 of `SerSend' makes integer from pointer without a cast code.c: In function `Dial': code.c:175: warning: passing arg 1 of `SerSend' makes integer from pointer without a cast askennecode.c:2:61: mega8.h: No such file or directory code.c:20: error: parse error before "RxFlag" code.c:20: warning: data definition has no type or storage class code.c:32: error: `TIM0_OVF' undeclared here (not in a function) code.c:32: error: syntax error before "void" code.c: In function `timer0_ovf_isr': code.c:34: error: `TCNT0' undeclared (first use in this function) code.c:34: error: (Each undeclared identifier is reported only once code.c:34: error: for each function it appears in.) code.c: In function `pd2_int': code.c:47: error: `TCNT0' undeclared (first use in this function) code.c: In function `interrupt': code.c:67: error: `TIFR' undeclared (first use in this function) code.c:67: error: `T0V0' undeclared (first use in this function) code.c:71: error: `GIFR' undeclared (first use in this function) code.c:71: error: `INTF0' undeclared (first use in this function) code.c:73: error: parse error before ')' token code.c: At top level: code.c:78: error: `USART_RXC' undeclared here (not in a function) code.c:78: error: syntax error before "void" code.c: In function `RX_int_isr': code.c:81: error: `UDR' undeclared (first use in this function) code.c: In function `main': code.c:108: error: `PD3' undeclared (first use in this function) code.c:89: warning: return type of `main' is not `int' code.c: At top level: code.c:123: warning: type mismatch with previous implicit declaration code.c:90: warning: previous implicit declaration of `InitSFRs' code.c:123: warning: `InitSFRs' was previously implicitly declared to return `int' code.c: In function `InitSFRs': code.c:125: error: `PortD' undeclared (first use in this function) code.c:126: error: `DDRD' undeclared (first use in this function) code.c:130: error: `TCCR0' undeclared (first use in this function) code.c:131: error: `TCNT0' undeclared (first use in this function) code.c:135: error: `MCUCR' undeclared (first use in this function) code.c:136: error: `GICR' undeclared (first use in this function) code.c:139: error: `TIMSK' undeclared (first use in this function) code.c:147: error: `UCSRA' undeclared (first use in this function) code.c:148: error: `UCSRB' undeclared (first use in this function) code.c:149: error: `UCSRC' undeclared (first use in this function) code.c:150: error: `UBRRH' undeclared (first use in this function) code.c:151: error: `UBRRL' undeclared (first use in this function) code.c: In function `SerSend': code.c:157: error: `UCSRA' undeclared (first use in this function) code.c:157:26: invalid suffix "b00100000" on integer constant code.c:159: error: `UDR' undeclared (first use in this function) code.c: In function `MobilePhoneInit': code.c:166: warning: passing arg 1 of `SerSend' makes integer from pointer without a cast code.c: In function `Dial': code.c:175: warning: passing arg 1 of `SerSend' makes integer from pointer without a cast