Also bin erstmal weg von AVR Studio!
Habe das in WinAVR probiert und komme auf folgende Fehlermeldung!
******************************************************************
> "make.exe" all
-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
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 -Os -Wall
-Wa,-adhlns=main.c.lst -I. -std=gnu99 -Wstrict-prototypes
-DF_OSC=4000000 -DF_CPU=4000000 -MD -MP -MF .deppp/main.o.d main.c -o
main.o
In file included from main.c:4:
RC.h:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'RC'
main.c:8: warning: function declaration isn't a prototype
make.exe: *** [main.o] Error 1
> Process Exit Code: 2
> Time Taken: 00:00
***********************************************************************
1 | # RC.h Datei
|
2 |
|
3 | #if !defined(_RC_H)
|
4 | #define _RC_H
|
5 |
|
6 | #include "flightmode.h"
|
7 |
|
8 | class RC {
|
9 | private:
|
10 | flightmode flightMode;
|
11 | byte radio_status = 0;
|
12 | public:
|
13 | void RC();
|
14 | void init();
|
15 | flightmode getFlightMode();
|
16 | int getChValue(int int ch);
|
17 | byte getState();
|
18 | };
|
19 |
|
20 | #endif //_RC_H
|
21 |
|
22 | ______________________________________________________
|
23 | # main.c Datei
|
24 |
|
25 | #include "RC.h"
|
26 |
|
27 | int main()
|
28 |
|
29 | {
|
30 | while(1);
|
31 |
|
32 | return 1;
|
33 | }
|
Ich habe den Hinweis von hp-freund durchgeführt!
Was läuft jetzt schief oder was mach ich falsch?
Gruß
GoldenEyes