mikrocontroller.net

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


Autor: Jan (Gast)
Datum:

Bewertung
0 lesenswert
nicht 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.
Build started 4.1.2010 at 22:39:46
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
In file included from D:\test-ct-bot\H-files/features.h:14,
                 from D:\test-ct-bot\H-files/time.h:23,
                 from D:\test-ct-bot\H-files/sched.h:4,
                 from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/sys/cdefs.h:46:44: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:50:44: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:80:1: warning: "__CONCAT" redefined
In file included from ../H-files/global.h:34,
                 from ../H-files/ct-Bot.h:312,
                 from ../H-files/timer.c:26:
c:/program files/atmel/winavr-20090313/lib/gcc/../../avr/include/stdint.h:286:1: warning: this is the location of the previous definition
In file included from D:\test-ct-bot\H-files/features.h:14,
                 from D:\test-ct-bot\H-files/time.h:23,
                 from D:\test-ct-bot\H-files/sched.h:4,
                 from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/sys/cdefs.h:138:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:196:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:205:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:214:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:223:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:235:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:245:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:254:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:262:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:276:19: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:286:20: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:291:20: error: missing binary operator before token "("
D:\test-ct-bot\H-files/sys/cdefs.h:298:19: error: missing binary operator before token "("
In file included from D:\test-ct-bot\H-files/time.h:25,
                 from D:\test-ct-bot\H-files/sched.h:4,
                 from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/bits/types.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'loff_t'
D:\test-ct-bot\H-files/bits/types.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ino_t'
D:\test-ct-bot\H-files/bits/types.h:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dev_t'
D:\test-ct-bot\H-files/bits/types.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gid_t'
D:\test-ct-bot\H-files/bits/types.h:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mode_t'
D:\test-ct-bot\H-files/bits/types.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nlink_t'
D:\test-ct-bot\H-files/bits/types.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uid_t'
D:\test-ct-bot\H-files/bits/types.h:88: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'off_t'
D:\test-ct-bot\H-files/bits/types.h:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pid_t'
D:\test-ct-bot\H-files/bits/types.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ssize_t'
In file included from D:\test-ct-bot\H-files/time.h:25,
                 from D:\test-ct-bot\H-files/sched.h:4,
                 from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/bits/types.h:158:20: error: missing binary operator before token "("
In file included from D:\test-ct-bot\H-files/time.h:25,
                 from D:\test-ct-bot\H-files/sched.h:4,
                 from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/bits/types.h:235: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'blkcnt_t'
D:\test-ct-bot\H-files/bits/types.h:239: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fsblkcnt_t'
D:\test-ct-bot\H-files/bits/types.h:243: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fsfilcnt_t'
In file included from D:\test-ct-bot\H-files/sched.h:4,
                 from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/time.h:29:23: error: bits/time.h: No such file or directory
D:\test-ct-bot\H-files/time.h:31:24: error: sys/select.h: No such file or directory
In file included from D:\test-ct-bot\H-files/sched.h:4,
                 from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/time.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suseconds_t'
D:\test-ct-bot\H-files/time.h:74: warning: 'struct timeval' declared inside parameter list
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
D:\test-ct-bot\H-files/time.h:112: error: field 'it_interval' has incomplete type
D:\test-ct-bot\H-files/time.h:114: error: field 'it_value' has incomplete type
D:\test-ct-bot\H-files/time.h:140: error: array type has incomplete element type
In file included from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/sched.h:5:23: error: sys/types.h: No such file or directory
In file included from D:\test-ct-bot\H-files/pthread.h:4,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/sched.h:46: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:47: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:49: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:50: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:52: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:53: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:55: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:56: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:67: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/sched.h:68: error: expected ')' before 'pid'
In file included from D:\test-ct-bot\H-files/pthread.h:5,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/signal.h:11:22: error: sys/time.h: No such file or directory
D:\test-ct-bot\H-files/signal.h:125:2: error: #error signal layout not yet known
In file included from D:\test-ct-bot\H-files/pthread.h:5,
                 from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/signal.h:255: error: expected specifier-qualifier-list before 'pid_t'
D:\test-ct-bot\H-files/signal.h:265: error: expected specifier-qualifier-list before 'pid_t'
D:\test-ct-bot\H-files/signal.h:271: error: expected specifier-qualifier-list before 'pid_t'
D:\test-ct-bot\H-files/signal.h:495: error: expected ')' before 'pid'
D:\test-ct-bot\H-files/signal.h:499: warning: 'struct timespec' declared inside parameter list
D:\test-ct-bot\H-files/signal.h:512:26: error: sys/ucontext.h: No such file or directory
In file included from ../H-files/timer.c:30:
D:\test-ct-bot\H-files/pthread.h:112: warning: 'struct timespec' declared inside parameter list
D:\test-ct-bot\H-files/pthread.h:235: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pthread_atfork'
../H-files/timer.c: In function 'timer_get_tickCount16':
../H-files/timer.c:60: warning: 'timer_mutex' is static but used in inline function 'timer_get_tickCount16' which is not static
../H-files/timer.c:62: warning: 'timer_mutex' is static but used in inline function 'timer_get_tickCount16' which is not static
../H-files/timer.c: In function 'timer_get_tickCount32':
../H-files/timer.c:68: warning: 'timer_mutex' is static but used in inline function 'timer_get_tickCount32' which is not static
../H-files/timer.c:70: warning: 'timer_mutex' is static but used in inline function 'timer_get_tickCount32' which is not static
make: *** [timer.o] Error 1
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 "("
...
#undef  __P
#undef  __PMT

#ifdef __GNUC__

/* GCC can always grok prototypes.  For C++ programs we add throw()
   to help it optimize the function calls.  But this works only with
   gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
   as non-throwing using a function attribute since programs can use
   the -fexceptions options for C code as well.  */
=># if !defined __cplusplus && __GNUC_PREREQ (3, 3)
#  define __THROW  __attribute__ ((__nothrow__))
#  define __NTH(fct)  __attribute__ ((__nothrow__)) fct
# else
...

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

danke im voraus!

Antwort schreiben

Die Angabe einer E-Mail-Adresse ist freiwillig. Wenn Sie automatisch per E-Mail über Antworten auf Ihren Beitrag informiert werden möchten, melden Sie sich bitte an.

Wichtige Regeln - erst lesen, dann posten!

  • Groß- und Kleinschreibung verwenden
  • Längeren Sourcecode nicht im Text einfügen, sondern als Dateianhang

Formatierung (mehr Informationen...)

  • [c]C-Code[/c]
  • [avrasm]AVR-Assembler-Code[/avrasm]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] - Link zu Artikel
  • Verweis auf anderen Beitrag einfügen: Rechtsklick auf Beitragstitel,
    "Adresse kopieren", und in den Text einfügen




Bild automatisch verkleinern, falls nötig
Bitte das JPG-Format nur für Fotos und Scans verwenden!
Zeichnungen und Screenshots im PNG- oder
GIF-Format hochladen. Siehe Bildformate.
Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt.
Bitte hier nur auf die ursprüngliche Frage antworten,
für neue Fragen einen neuen Beitrag erstellen.

Mit dem Abschicken bestätigst du, die Nutzungsbedingungen anzuerkennen.