Forum: Mikrocontroller und Digitale Elektronik Problem: CT Bot in AVR Studio programmieren


von Jan (Gast)


Lesenswert?

Problem: CT Bot in AVR Studio programmieren

Hallo ich bin neu in Forum,

seid kurzem beschäftige ich mich mit dem c't-bot, und benötige dringend 
rat.

ich wollte den ct bot nur mal grade ausfahren lassen mit hilfe von 
vorgefertigten funktionen. leider bin ich beim comlelieren direkt mit 
fehlermeldungen über schüttet worden. nach dem ich jede mange h-files 
ins projekt eingefügt habe sind viele fehlermeldungen verschwunden. nun 
weiß ich nicht mehr weiter. da es sich jetzt nur noch um fehlermeldungen 
von h-file handelt die ich mir aus dem netz runtergeladen hab.
1
Build started 4.1.2010 at 22:39:46
2
avr-gcc -I"D:\test-ct-bot\H-files"  -mmcu=atmega32 -Wall -gdwarf-2 -std=gnu99   -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT timer.o -MF dep/timer.o.d  -c  ../H-files/timer.c
3
In file included from D:\test-ct-bot\H-files/features.h:14,
4
                 from D:\test-ct-bot\H-files/time.h:23,
5
                 from D:\test-ct-bot\H-files/sched.h:4,
6
                 from D:\test-ct-bot\H-files/pthread.h:4,
7
                 from ../H-files/timer.c:30:
8
D:\test-ct-bot\H-files/sys/cdefs.h:46:44: error: missing binary operator before token "("
9
D:\test-ct-bot\H-files/sys/cdefs.h:50:44: error: missing binary operator before token "("
10
D:\test-ct-bot\H-files/sys/cdefs.h:80:1: warning: "__CONCAT" redefined
11
In file included from ../H-files/global.h:34,
12
                 from ../H-files/ct-Bot.h:312,
13
                 from ../H-files/timer.c:26:
14
c:/program files/atmel/winavr-20090313/lib/gcc/../../avr/include/stdint.h:286:1: warning: this is the location of the previous definition
15
In file included from D:\test-ct-bot\H-files/features.h:14,
16
                 from D:\test-ct-bot\H-files/time.h:23,
17
                 from D:\test-ct-bot\H-files/sched.h:4,
18
                 from D:\test-ct-bot\H-files/pthread.h:4,
19
                 from ../H-files/timer.c:30:
20
D:\test-ct-bot\H-files/sys/cdefs.h:138:19: error: missing binary operator before token "("
21
D:\test-ct-bot\H-files/sys/cdefs.h:196:19: error: missing binary operator before token "("
22
D:\test-ct-bot\H-files/sys/cdefs.h:205:19: error: missing binary operator before token "("
23
D:\test-ct-bot\H-files/sys/cdefs.h:214:19: error: missing binary operator before token "("
24
D:\test-ct-bot\H-files/sys/cdefs.h:223:19: error: missing binary operator before token "("
25
D:\test-ct-bot\H-files/sys/cdefs.h:235:19: error: missing binary operator before token "("
26
D:\test-ct-bot\H-files/sys/cdefs.h:245:19: error: missing binary operator before token "("
27
D:\test-ct-bot\H-files/sys/cdefs.h:254:19: error: missing binary operator before token "("
28
D:\test-ct-bot\H-files/sys/cdefs.h:262:19: error: missing binary operator before token "("
29
D:\test-ct-bot\H-files/sys/cdefs.h:276:19: error: missing binary operator before token "("
30
D:\test-ct-bot\H-files/sys/cdefs.h:286:20: error: missing binary operator before token "("
31
D:\test-ct-bot\H-files/sys/cdefs.h:291:20: error: missing binary operator before token "("
32
D:\test-ct-bot\H-files/sys/cdefs.h:298:19: error: missing binary operator before token "("
33
In file included from D:\test-ct-bot\H-files/time.h:25,
34
                 from D:\test-ct-bot\H-files/sched.h:4,
35
                 from D:\test-ct-bot\H-files/pthread.h:4,
36
                 from ../H-files/timer.c:30:
37
D:\test-ct-bot\H-files/bits/types.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'loff_t'
38
D:\test-ct-bot\H-files/bits/types.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ino_t'
39
D:\test-ct-bot\H-files/bits/types.h:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dev_t'
40
D:\test-ct-bot\H-files/bits/types.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gid_t'
41
D:\test-ct-bot\H-files/bits/types.h:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mode_t'
42
D:\test-ct-bot\H-files/bits/types.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nlink_t'
43
D:\test-ct-bot\H-files/bits/types.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uid_t'
44
D:\test-ct-bot\H-files/bits/types.h:88: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'off_t'
45
D:\test-ct-bot\H-files/bits/types.h:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pid_t'
46
D:\test-ct-bot\H-files/bits/types.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ssize_t'
47
In file included from D:\test-ct-bot\H-files/time.h:25,
48
                 from D:\test-ct-bot\H-files/sched.h:4,
49
                 from D:\test-ct-bot\H-files/pthread.h:4,
50
                 from ../H-files/timer.c:30:
51
D:\test-ct-bot\H-files/bits/types.h:158:20: error: missing binary operator before token "("
52
In file included from D:\test-ct-bot\H-files/time.h:25,
53
                 from D:\test-ct-bot\H-files/sched.h:4,
54
                 from D:\test-ct-bot\H-files/pthread.h:4,
55
                 from ../H-files/timer.c:30:
56
D:\test-ct-bot\H-files/bits/types.h:235: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'blkcnt_t'
57
D:\test-ct-bot\H-files/bits/types.h:239: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fsblkcnt_t'
58
D:\test-ct-bot\H-files/bits/types.h:243: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fsfilcnt_t'
59
In file included from D:\test-ct-bot\H-files/sched.h:4,
60
                 from D:\test-ct-bot\H-files/pthread.h:4,
61
                 from ../H-files/timer.c:30:
62
D:\test-ct-bot\H-files/time.h:29:23: error: bits/time.h: No such file or directory
63
D:\test-ct-bot\H-files/time.h:31:24: error: sys/select.h: No such file or directory
64
In file included from D:\test-ct-bot\H-files/sched.h:4,
65
                 from D:\test-ct-bot\H-files/pthread.h:4,
66
                 from ../H-files/timer.c:30:
67
D:\test-ct-bot\H-files/time.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suseconds_t'
68
D:\test-ct-bot\H-files/time.h:74: warning: 'struct timeval' declared inside parameter list
69
D:\test-ct-bot\H-files/time.h:74: warning: its scope is only this definition or declaration, which is probably not what you want
70
D:\test-ct-bot\H-files/time.h:112: error: field 'it_interval' has incomplete type
71
D:\test-ct-bot\H-files/time.h:114: error: field 'it_value' has incomplete type
72
D:\test-ct-bot\H-files/time.h:140: error: array type has incomplete element type
73
In file included from D:\test-ct-bot\H-files/pthread.h:4,
74
                 from ../H-files/timer.c:30:
75
D:\test-ct-bot\H-files/sched.h:5:23: error: sys/types.h: No such file or directory
76
In file included from D:\test-ct-bot\H-files/pthread.h:4,
77
                 from ../H-files/timer.c:30:
78
D:\test-ct-bot\H-files/sched.h:46: error: expected ')' before 'pid'
79
D:\test-ct-bot\H-files/sched.h:47: error: expected ')' before 'pid'
80
D:\test-ct-bot\H-files/sched.h:49: error: expected ')' before 'pid'
81
D:\test-ct-bot\H-files/sched.h:50: error: expected ')' before 'pid'
82
D:\test-ct-bot\H-files/sched.h:52: error: expected ')' before 'pid'
83
D:\test-ct-bot\H-files/sched.h:53: error: expected ')' before 'pid'
84
D:\test-ct-bot\H-files/sched.h:55: error: expected ')' before 'pid'
85
D:\test-ct-bot\H-files/sched.h:56: error: expected ')' before 'pid'
86
D:\test-ct-bot\H-files/sched.h:67: error: expected ')' before 'pid'
87
D:\test-ct-bot\H-files/sched.h:68: error: expected ')' before 'pid'
88
In file included from D:\test-ct-bot\H-files/pthread.h:5,
89
                 from ../H-files/timer.c:30:
90
D:\test-ct-bot\H-files/signal.h:11:22: error: sys/time.h: No such file or directory
91
D:\test-ct-bot\H-files/signal.h:125:2: error: #error signal layout not yet known
92
In file included from D:\test-ct-bot\H-files/pthread.h:5,
93
                 from ../H-files/timer.c:30:
94
D:\test-ct-bot\H-files/signal.h:255: error: expected specifier-qualifier-list before 'pid_t'
95
D:\test-ct-bot\H-files/signal.h:265: error: expected specifier-qualifier-list before 'pid_t'
96
D:\test-ct-bot\H-files/signal.h:271: error: expected specifier-qualifier-list before 'pid_t'
97
D:\test-ct-bot\H-files/signal.h:495: error: expected ')' before 'pid'
98
D:\test-ct-bot\H-files/signal.h:499: warning: 'struct timespec' declared inside parameter list
99
D:\test-ct-bot\H-files/signal.h:512:26: error: sys/ucontext.h: No such file or directory
100
In file included from ../H-files/timer.c:30:
101
D:\test-ct-bot\H-files/pthread.h:112: warning: 'struct timespec' declared inside parameter list
102
D:\test-ct-bot\H-files/pthread.h:235: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pthread_atfork'
103
../H-files/timer.c: In function 'timer_get_tickCount16':
104
../H-files/timer.c:60: warning: 'timer_mutex' is static but used in inline function 'timer_get_tickCount16' which is not static
105
../H-files/timer.c:62: warning: 'timer_mutex' is static but used in inline function 'timer_get_tickCount16' which is not static
106
../H-files/timer.c: In function 'timer_get_tickCount32':
107
../H-files/timer.c:68: warning: 'timer_mutex' is static but used in inline function 'timer_get_tickCount32' which is not static
108
../H-files/timer.c:70: warning: 'timer_mutex' is static but used in inline function 'timer_get_tickCount32' which is not static
109
make: *** [timer.o] Error 1
110
Build failed with 54 errors and 10 warnings...

Fehler Bsp:
=> D:\test-ct-bot\H-files/sys/cdefs.h:46:44: error: missing binary 
operator before token "("
1
...
2
#undef  __P
3
#undef  __PMT
4
5
#ifdef __GNUC__
6
7
/* GCC can always grok prototypes.  For C++ programs we add throw()
8
   to help it optimize the function calls.  But this works only with
9
   gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
10
   as non-throwing using a function attribute since programs can use
11
   the -fexceptions options for C code as well.  */
12
=># if !defined __cplusplus && __GNUC_PREREQ (3, 3)
13
#  define __THROW  __attribute__ ((__nothrow__))
14
#  define __NTH(fct)  __attribute__ ((__nothrow__)) fct
15
# else
16
...

Auf wunsch stelle ich euch gerne das ganze projekt zuverfügung

danke im voraus!

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.