Hallo alle zusammen.
Ich bin neu hier und brauche eure Hilfe!
Ich heiße Andre, bin 38 Jahre alt und habe mir einen Nighthawk zusammengebaut, den ich mit einem OSD versehen möchte.
Wenn ich den Sourcecode in Arduino Verifizieren lasse bekomme ich etliche Fehlermeldungen.
Was mach ich da falsch? Habe die Dateien heruntergeladen, die Libaries in den entsprechenden Ordner kopiert und nun das:
In file included from D:\arduion\Arduino\libraries\FastSerial/BetterStream.h:16:0,
from D:\arduion\Arduino\libraries\FastSerial/FastSerial.h:56,
from ArduCam_Max7456.cpp:2:
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'int strcasecmp_P(const char*, const prog_char_t*)':
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:108:38: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
return strcasecmp_P(str1, (const prog_char *)pstr);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:108:38: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:108:32: error: expected primary-expression before 'const'
return strcasecmp_P(str1, (const prog_char *)pstr);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:108:32: error: expected ')' before 'const'
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'int strcmp_P(const char*, const prog_char_t*)':
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:113:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
return strcmp_P(str1, (const prog_char *)pstr);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:113:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:113:28: error: expected primary-expression before 'const'
return strcmp_P(str1, (const prog_char *)pstr);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:113:28: error: expected ')' before 'const'
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'size_t strlen_P(const prog_char_t*)':
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:118:28: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
return strlen_P((const prog_char *)pstr);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:118:28: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:118:22: error: expected primary-expression before 'const'
return strlen_P((const prog_char *)pstr);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:118:22: error: expected ')' before 'const'
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'void* memcpy_P(void*, const prog_char_t*, size_t)':
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:123:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
return memcpy_P(dest, (const prog_char *)src, n);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:123:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:123:28: error: expected primary-expression before 'const'
return memcpy_P(dest, (const prog_char *)src, n);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:123:28: error: expected ')' before 'const'
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'char* strncpy_P(char*, const prog_char_t*, size_t)':
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:148:37: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
return strncpy_P(buffer, (const prog_char *)pstr, buffer_size);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:148:37: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:148:31: error: expected primary-expression before 'const'
return strncpy_P(buffer, (const prog_char *)pstr, buffer_size);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:148:31: error: expected ')' before 'const'
In file included from C:\Users\Andre\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.6\cores\arduino/WString.h:29:0,
from C:\Users\Andre\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.6\cores\arduino/Print.h:26,
from C:\Users\Andre\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.6\cores\arduino/Stream.h:26,
from D:\arduion\Arduino\libraries\FastSerial/BetterStream.h:14,
from D:\arduion\Arduino\libraries\FastSerial/FastSerial.h:56,
from ArduCam_Max7456.cpp:2:
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'uintptr_t pgm_read_pointer(const void*)':
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
u.a = pgm_read_byte(i + (const prog_char *)s);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:41: error: expected primary-expression before 'const'
u.a = pgm_read_byte(i + (const prog_char *)s);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:41: error: expected ')' before 'const'
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:22: error: expected ')' before ';' token
u.a = pgm_read_byte(i + (const prog_char *)s);
^
D:\arduion\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:22: error: expected ')' before ';' token
In file included from D:\arduion\Arduino\libraries\FastSerial/FastSerial.h:56:0,
from ArduCam_Max7456.cpp:2:
D:\arduion\Arduino\libraries\FastSerial/BetterStream.h: At global scope:
D:\arduion\Arduino\libraries\FastSerial/BetterStream.h:28:41: error: 'prog_char' does not name a type
void _printf_P(const prog_char *, ...);
^
D:\arduion\Arduino\libraries\FastSerial/BetterStream.h:28:51: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
void _printf_P(const prog_char *, ...);
^
Fehler beim Kompilieren.
Hilfe, euer Andre.