Hi,
I tried uploading the MAV link directoreis and the arduino IDE didnt compile.
Then I tried uploading the APM directories instead and it didnt compile too, before uploading the MAV link it did compile and everything worked well, what am I missing here?
here is the error messeges I get in the arduino IDE:
ArduPilotMega.cpp:17:24: error: FastSerial.h: No such file or directory
ArduPilotMega.cpp:18:23: error: AP_Common.h: No such file or directory
ArduPilotMega.cpp:19:51: error: APM_RC.h: No such file or directory
ArduPilotMega.cpp:20:77: error: AP_ADC.h: No such file or directory
ArduPilotMega.cpp:21:47: error: AP_GPS.h: No such file or directory
ArduPilotMega.cpp:23:59: error: APM_BMP085.h: No such file or directory
ArduPilotMega.cpp:24:63: error: DataFlash.h: No such file or directory
ArduPilotMega.cpp:25:64: error: APM_Compass.h: No such file or directory
ArduPilotMega:75: error: expected constructor, destructor, or type conversion before '(' token
ArduPilotMega:76: error: expected constructor, destructor, or type conversion before '(' token
ArduPilotMega:77: error: expected constructor, destructor, or type conversion before '(' token
ArduPilotMega:79: error: 'AP_ADC_ADS7844' does not name a type
ArduPilotMega:80: error: 'APM_BMP085_Class' does not name a type
ArduPilotMega:81: error: 'APM_Compass_Class' does not name a type
ArduPilotMega:93: error: 'AP_GPS_MTK' does not name a type
ArduPilotMega:358: error: aggregate 'Location home' has incomplete type and cannot be defined
ArduPilotMega:359: error: aggregate 'Location prev_WP' has incomplete type and cannot be defined
ArduPilotMega:360: error: aggregate 'Location current_loc' has incomplete type and cannot be defined
ArduPilotMega:361: error: aggregate 'Location next_WP' has incomplete type and cannot be defined
ArduPilotMega:362: error: aggregate 'Location tell_command' has incomplete type and cannot be defined
ArduPilotMega:363: error: aggregate 'Location next_command' has incomplete type and cannot be defined
ArduPilotMega.cpp: In function 'void medium_loop()':
ArduPilotMega:583: error: 'GPS' was not declared in this scope
ArduPilotMega:618: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'void slow_loop()':
ArduPilotMega:643: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void update_GPS()':
ArduPilotMega:682: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'void update_current_flight_mode()':
ArduPilotMega:753: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'void calc_nav_roll()':
Attitude:221: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'void set_servos_4()':
Attitude:352: error: 'APM_RC' was not declared in this scope
ArduPilotMega.cpp: In function 'void demo_servos(byte)':
DCM:1: error: 'APM_RC' was not declared in this scope
ArduPilotMega.cpp: In function 'void Read_adc_raw()':
DCM:36: error: 'adc' was not declared in this scope
ArduPilotMega.cpp: In function 'void Drift_correction()':
DCM:186: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'void Accel_adjust()':
DCM:214: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'void read_EEPROM_airstart_critical()':
EEPROM:61: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'void send_message(byte, long int)':
GCS_Standard:130: error: 'GPS' was not declared in this scope
GCS_Standard:243: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'void print_waypoint(Location*, byte)':
GCS_Xplane:4: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
GCS_Xplane:6: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
GCS_Xplane:8: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
GCS_Xplane:10: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
GCS_Xplane:12: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: At global scope:
Log:43: error: expected ',' or '...' before '::' token
Log:43: error: ISO C++ forbids declaration of 'Menu' with no type
Log:44: error: expected ',' or '...' before '::' token
Log:44: error: ISO C++ forbids declaration of 'Menu' with no type
Log:45: error: expected ',' or '...' before '::' token
Log:45: error: ISO C++ forbids declaration of 'Menu' with no type
Log:46: error: expected ',' or '...' before '::' token
Log:46: error: ISO C++ forbids declaration of 'Menu' with no type
Log:51: error: expected ',' or '...' before '::' token
Log:51: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t help_log(uint8_t, int)':
Log:53: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
Log:66: error: 'Menu' has not been declared
Log:66: error: invalid type in declaration before '=' token
Log:72: error: braces around scalar initializer for type 'const int'
Log:75: error: expected constructor, destructor, or type conversion before '(' token
ArduPilotMega.cpp: In function 'bool print_log_menu()':
Log:84: error: 'class HardwareSerial' has no member named 'printf_P'
Log:86: error: 'class HardwareSerial' has no member named 'printf_P'
Log:93: error: 'class HardwareSerial' has no member named 'printf_P'
Log:94: error: 'class HardwareSerial' has no member named 'printf_P'
Log:95: error: 'class HardwareSerial' has no member named 'printf_P'
Log:96: error: 'class HardwareSerial' has no member named 'printf_P'
Log:97: error: 'class HardwareSerial' has no member named 'printf_P'
Log:98: error: 'class HardwareSerial' has no member named 'printf_P'
Log:99: error: 'class HardwareSerial' has no member named 'printf_P'
Log:100: error: 'class HardwareSerial' has no member named 'printf_P'
Log:101: error: 'class HardwareSerial' has no member named 'printf_P'
Log:107: error: 'class HardwareSerial' has no member named 'printf_P'
Log:110: error: 'class HardwareSerial' has no member named 'printf_P'
Log:117: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
Log:126: error: expected ',' or '...' before '::' token
Log:126: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t dump_log(uint8_t, int)':
Log:134: error: 'argv' was not declared in this scope
Log:137: error: 'class HardwareSerial' has no member named 'printf_P'
Log:146: error: 'class HardwareSerial' has no member named 'printf_P'
Log:149: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
Log:153: error: expected ',' or '...' before '::' token
Log:153: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t erase_logs(uint8_t, int)':
Log:156: error: 'class HardwareSerial' has no member named 'printf_P'
Log:159: error: 'class HardwareSerial' has no member named 'printf_P'
Log:161: error: 'DataFlash' was not declared in this scope
Log:164: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
Log:168: error: expected ',' or '...' before '::' token
Log:168: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t select_logs(uint8_t, int)':
Log:173: error: 'class HardwareSerial' has no member named 'printf_P'
Log:185: error: 'argv' was not declared in this scope
Log:201: error: 'argv' was not declared in this scope
ArduPilotMega.cpp: At global scope:
Log:212: error: expected ',' or '...' before '::' token
Log:212: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t process_logs(uint8_t, int)':
Log:214: error: 'log_menu' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Write_Attitude(int, int, uint16_t)':
Log:220: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Write_Performance()':
Log:232: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Write_Cmd(byte, Location*)':
Log:251: error: 'DataFlash' was not declared in this scope
Log:255: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
Log:256: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
Log:257: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
Log:258: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
Log:259: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'void Log_Write_Startup(byte)':
Log:265: error: 'DataFlash' was not declared in this scope
Log:273: error: variable 'Location cmd' has initializer but incomplete type
Log:273: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
Log:277: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'void Log_Write_Control_Tuning()':
Log:286: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Write_Nav_Tuning()':
Log:304: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Write_Mode(byte)':
Log:320: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Write_GPS(long int, long int, long int, long int, long int, long int, long int, byte, byte)':
Log:331: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Write_Raw()':
Log:350: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_Control_Tuning()':
Log:365: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_Nav_Tuning()':
Log:377: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_Performance()':
Log:400: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_Cmd()':
Log:421: error: 'DataFlash' was not declared in this scope
Log:426: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_Startup()':
Log:435: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_Attitude()':
Log:453: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_Mode()':
Log:471: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_GPS()':
Log:509: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read_Raw()':
Log:535: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'void Log_Read(int, int)':
Log:551: error: 'DataFlash' was not declared in this scope
ArduPilotMega.cpp: In function 'Location get_wp_with_index(int)':
commands:61: error: return type 'struct Location' is incomplete
commands:61: error: new declaration 'void get_wp_with_index(int)'
ArduPilotMega:6: error: ambiguates old declaration 'Location get_wp_with_index(int)'
commands:63: error: aggregate 'Location temp' has incomplete type and cannot be defined
ArduPilotMega.cpp: In function 'void set_wp_with_index(Location, int)':
commands:89: error: 'temp' has incomplete type
ArduPilotMega:-1: error: forward declaration of 'struct Location'
commands:171: error: return type 'struct Location' is incomplete
commands:171: error: new declaration 'void get_LOITER_home_wp()'
ArduPilotMega:13: error: ambiguates old declaration 'Location get_LOITER_home_wp()'
commands:174: error: variable 'Location temp' has initializer but incomplete type
commands:174: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'void init_home()':
commands:249: error: 'GPS' was not declared in this scope
commands_process:3: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'void load_next_command()':
commands_process:57: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
commands_process:82: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'void process_now()':
commands_process:340: error: 'APM_RC' was not declared in this scope
ArduPilotMega.cpp: In function 'void verify_must()':
commands_process:373: error: 'GPS' was not declared in this scope
commands_process:400: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'byte readSwitch()':
control_modes:47: error: 'APM_RC' was not declared in this scope
ArduPilotMega.cpp: In function 'void new_event(Location*)':
events:104: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
events:107: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
events:120: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
events:121: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
events:122: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
events:123: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'void perform_event()':
events:156: error: 'APM_RC' was not declared in this scope
ArduPilotMega.cpp: In function 'void perform_event_undo()':
navigation:8: error: 'APM_RC' was not declared in this scope
ArduPilotMega.cpp: In function 'void navigate()':
navigation:41: error: 'GPS' was not declared in this scope
navigation:51: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'void calc_bearing_error()':
navigation:146: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: In function 'long int getDistance(Location*, Location*)':
radio:9: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:9: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:11: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:11: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:13: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:13: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:14: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:14: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'long int get_alt_distance(Location*, Location*)':
radio:20: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:20: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:20: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:20: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:20: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:20: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'long int get_bearing(Location*, Location*)':
radio:25: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:25: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:26: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
radio:26: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: In function 'void read_radio()':
radio:37: error: 'APM_RC' was not declared in this scope
ArduPilotMega.cpp: In function 'void read_airpressure()':
sensors:37: error: 'APM_BMP085' was not declared in this scope
ArduPilotMega.cpp: In function 'void read_airspeed()':
sensors:54: error: 'adc' was not declared in this scope
ArduPilotMega.cpp: In function 'void zero_airspeed()':
setup:22: error: 'adc' was not declared in this scope
ArduPilotMega.cpp: At global scope:
setup:34: error: expected ',' or '...' before '::' token
setup:34: error: ISO C++ forbids declaration of 'Menu' with no type
setup:35: error: expected ',' or '...' before '::' token
setup:35: error: ISO C++ forbids declaration of 'Menu' with no type
setup:36: error: expected ',' or '...' before '::' token
setup:36: error: ISO C++ forbids declaration of 'Menu' with no type
setup:37: error: expected ',' or '...' before '::' token
setup:37: error: ISO C++ forbids declaration of 'Menu' with no type
setup:40: error: 'Menu' has not been declared
setup:40: error: invalid type in declaration before '=' token
setup:47: error: braces around scalar initializer for type 'const int'
setup:50: error: expected constructor, destructor, or type conversion before '(' token
setup:54: error: expected ',' or '...' before '::' token
setup:54: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t setup_mode(uint8_t, int)':
setup:57: error: 'class HardwareSerial' has no member named 'printf_P'
setup:65: error: 'setup_menu' was not declared in this scope
ArduPilotMega.cpp: At global scope:
setup:71: error: expected ',' or '...' before '::' token
setup:71: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t setup_show(uint8_t, int)':
setup:75: error: 'class HardwareSerial' has no member named 'printf_P'
setup:78: error: 'class HardwareSerial' has no member named 'printf_P'
setup:80: error: 'class HardwareSerial' has no member named 'printf_P'
setup:87: error: 'class HardwareSerial' has no member named 'printf_P'
setup:94: error: 'class HardwareSerial' has no member named 'printf_P'
setup:97: error: 'class HardwareSerial' has no member named 'printf_P'
setup:98: error: 'class HardwareSerial' has no member named 'printf_P'
setup:99: error: 'class HardwareSerial' has no member named 'printf_P'
setup:100: error: 'class HardwareSerial' has no member named 'printf_P'
setup:101: error: 'class HardwareSerial' has no member named 'printf_P'
setup:104: error: 'class HardwareSerial' has no member named 'printf_P'
setup:105: error: 'class HardwareSerial' has no member named 'printf_P'
setup:106: error: 'class HardwareSerial' has no member named 'printf_P'
setup:107: error: 'class HardwareSerial' has no member named 'printf_P'
setup:108: error: 'class HardwareSerial' has no member named 'printf_P'
setup:109: error: 'class HardwareSerial' has no member named 'printf_P'
setup:110: error: 'class HardwareSerial' has no member named 'printf_P'
setup:111: error: 'class HardwareSerial' has no member named 'printf_P'
setup:112: error: 'class HardwareSerial' has no member named 'printf_P'
setup:113: error: 'class HardwareSerial' has no member named 'printf_P'
setup:114: error: 'class HardwareSerial' has no member named 'printf_P'
setup:115: error: 'class HardwareSerial' has no member named 'printf_P'
setup:116: error: 'class HardwareSerial' has no member named 'printf_P'
setup:118: error: 'class HardwareSerial' has no member named 'printf_P'
setup:123: error: 'class HardwareSerial' has no member named 'printf_P'
setup:125: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: In function 'void print_PID(byte)':
setup:137: error: 'class HardwareSerial' has no member named 'printf_P'
setup:139: error: 'class HardwareSerial' has no member named 'printf_P'
setup:141: error: 'class HardwareSerial' has no member named 'printf_P'
setup:143: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
setup:150: error: expected ',' or '...' before '::' token
setup:150: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t setup_factory(uint8_t, int)':
setup:155: error: 'class HardwareSerial' has no member named 'printf_P'
setup:164: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
setup:297: error: expected ',' or '...' before '::' token
setup:297: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t setup_radio(uint8_t, int)':
setup:320: error: 'class HardwareSerial' has no member named 'printf_P'
setup:343: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
setup:353: error: expected ',' or '...' before '::' token
setup:353: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t setup_flightmodes(uint8_t, int)':
setup:357: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: In function 'void print_switch(byte, byte)':
system:9: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
system:40: error: expected ',' or '...' before '::' token
system:40: error: ISO C++ forbids declaration of 'Menu' with no type
system:41: error: expected ',' or '...' before '::' token
system:41: error: ISO C++ forbids declaration of 'Menu' with no type
system:42: error: expected ',' or '...' before '::' token
system:42: error: ISO C++ forbids declaration of 'Menu' with no type
system:47: error: expected ',' or '...' before '::' token
system:47: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t main_menu_help(uint8_t, int)':
system:49: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
system:60: error: 'Menu' has not been declared
system:60: error: invalid type in declaration before '=' token
system:67: error: braces around scalar initializer for type 'const int'
system:70: error: expected constructor, destructor, or type conversion before '(' token
ArduPilotMega.cpp: In function 'void init_ardupilot()':
system:88: error: no matching function for call to 'HardwareSerial::begin(long int, int, int)'
D:\arduino-0021\hardware\arduino\cores\arduino/HardwareSerial.h:49: note: candidates are: void HardwareSerial::begin(long int)
system:102: error: no matching function for call to 'HardwareSerial::begin(long int, int, int)'
D:\arduino-0021\hardware\arduino\cores\arduino/HardwareSerial.h:49: note: candidates are: void HardwareSerial::begin(long int)
system:114: error: no matching function for call to 'HardwareSerial::begin(long int, int, int)'
D:\arduino-0021\hardware\arduino\cores\arduino/HardwareSerial.h:49: note: candidates are: void HardwareSerial::begin(long int)
system:117: error: 'class HardwareSerial' has no member named 'printf_P'
system:125: error: 'APM_RC' was not declared in this scope
system:128: error: 'adc' was not declared in this scope
system:129: error: 'APM_BMP085' was not declared in this scope
system:130: error: 'DataFlash' was not declared in this scope
system:131: error: 'GPS' was not declared in this scope
system:157: error: 'class HardwareSerial' has no member named 'printf_P'
system:164: error: 'class HardwareSerial' has no member named 'printf_P'
system:167: error: 'main_menu' was not declared in this scope
ArduPilotMega.cpp: In function 'void startup_IMU_ground()':
system:403: error: 'APM_BMP085' was not declared in this scope
ArduPilotMega.cpp: In function 'void update_GPS_light()':
system:460: error: 'GPS' was not declared in this scope
ArduPilotMega.cpp: At global scope:
test:33: error: expected ',' or '...' before '::' token
test:33: error: ISO C++ forbids declaration of 'Menu' with no type
test:34: error: expected ',' or '...' before '::' token
test:34: error: ISO C++ forbids declaration of 'Menu' with no type
test:35: error: expected ',' or '...' before '::' token
test:35: error: ISO C++ forbids declaration of 'Menu' with no type
test:36: error: expected ',' or '...' before '::' token
test:36: error: ISO C++ forbids declaration of 'Menu' with no type
test:37: error: expected ',' or '...' before '::' token
test:37: error: ISO C++ forbids declaration of 'Menu' with no type
test:38: error: expected ',' or '...' before '::' token
test:38: error: ISO C++ forbids declaration of 'Menu' with no type
test:39: error: expected ',' or '...' before '::' token
test:39: error: ISO C++ forbids declaration of 'Menu' with no type
test:40: error: expected ',' or '...' before '::' token
test:40: error: ISO C++ forbids declaration of 'Menu' with no type
test:41: error: expected ',' or '...' before '::' token
test:41: error: ISO C++ forbids declaration of 'Menu' with no type
test:42: error: expected ',' or '...' before '::' token
test:42: error: ISO C++ forbids declaration of 'Menu' with no type
test:43: error: expected ',' or '...' before '::' token
test:43: error: ISO C++ forbids declaration of 'Menu' with no type
test:44: error: expected ',' or '...' before '::' token
test:44: error: ISO C++ forbids declaration of 'Menu' with no type
test:45: error: expected ',' or '...' before '::' token
test:45: error: ISO C++ forbids declaration of 'Menu' with no type
test:46: error: expected ',' or '...' before '::' token
test:46: error: ISO C++ forbids declaration of 'Menu' with no type
test:47: error: expected ',' or '...' before '::' token
test:47: error: ISO C++ forbids declaration of 'Menu' with no type
test:48: error: expected ',' or '...' before '::' token
test:48: error: ISO C++ forbids declaration of 'Menu' with no type
test:69: error: 'Menu' has not been declared
test:69: error: invalid type in declaration before '=' token
test:86: error: braces around scalar initializer for type 'const int'
test:89: error: expected constructor, destructor, or type conversion before '(' token
test:92: error: expected ',' or '...' before '::' token
test:92: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_mode(uint8_t, int)':
test:94: error: 'class HardwareSerial' has no member named 'printf_P'
test:95: error: 'test_menu' was not declared in this scope
ArduPilotMega.cpp: At global scope:
test:99: error: expected ',' or '...' before '::' token
test:99: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_eedump(uint8_t, int)':
test:105: error: 'class HardwareSerial' has no member named 'printf_P'
test:107: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:114: error: expected ',' or '...' before '::' token
test:114: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_radio(uint8_t, int)':
test:146: error: 'APM_RC' was not declared in this scope
test:148: error: 'class HardwareSerial' has no member named 'printf_P'
test:149: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:159: error: expected ',' or '...' before '::' token
test:159: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_gps(uint8_t, int)':
test:171: error: 'GPS' was not declared in this scope
test:178: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:189: error: expected ',' or '...' before '::' token
test:189: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_adc(uint8_t, int)':
test:192: error: 'adc' was not declared in this scope
test:194: error: 'class HardwareSerial' has no member named 'printf_P'
test:198: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:208: error: expected ',' or '...' before '::' token
test:208: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_imu(uint8_t, int)':
test:210: error: 'class HardwareSerial' has no member named 'printf_P'
test:221: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:230: error: expected ',' or '...' before '::' token
test:230: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_battery(uint8_t, int)':
test:246: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:254: error: expected ',' or '...' before '::' token
test:254: error: ISO C++ forbids declaration of 'Menu' with no type
test:278: error: expected ',' or '...' before '::' token
test:278: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_gyro(uint8_t, int)':
test:282: error: 'class HardwareSerial' has no member named 'printf_P'
test:287: error: 'adc' was not declared in this scope
test:289: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:299: error: expected ',' or '...' before '::' token
test:299: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_wp(uint8_t, int)':
test:310: error: 'class HardwareSerial' has no member named 'printf_P'
test:312: error: 'class HardwareSerial' has no member named 'printf_P'
test:315: error: 'class HardwareSerial' has no member named 'printf_P'
test:316: error: 'class HardwareSerial' has no member named 'printf_P'
test:317: error: 'class HardwareSerial' has no member named 'printf_P'
test:320: error: variable 'Location temp' has initializer but incomplete type
test:320: error: invalid use of incomplete type 'struct Location'
ArduPilotMega:-1: error: forward declaration of 'struct Location'
ArduPilotMega.cpp: At global scope:
test:329: error: expected ',' or '...' before '::' token
test:329: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_airspeed(uint8_t, int)':
test:332: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:351: error: expected ',' or '...' before '::' token
test:351: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_xbee(uint8_t, int)':
test:355: error: 'class HardwareSerial' has no member named 'printf_P'
test:359: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:369: error: expected ',' or '...' before '::' token
test:369: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_pressure(uint8_t, int)':
test:372: error: 'class HardwareSerial' has no member named 'printf_P'
test:373: error: 'class HardwareSerial' has no member named 'printf_P'
test:375: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:399: error: expected ',' or '...' before '::' token
test:399: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_mag(uint8_t, int)':
test:402: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:426: error: expected ',' or '...' before '::' token
test:426: error: ISO C++ forbids declaration of 'Menu' with no type
test:450: error: expected ',' or '...' before '::' token
test:450: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'int8_t test_modeswitch(uint8_t, int)':
test:462: error: 'class HardwareSerial' has no member named 'printf_P'
ArduPilotMega.cpp: At global scope:
test:472: error: expected ',' or '...' before '::' token
test:472: error: ISO C++ forbids declaration of 'Menu' with no type
ArduPilotMega.cpp: In function 'void print_hit_enter()':
test:505: error: 'class HardwareSerial' has no member named 'printf_P'
Replies
I got the problem, the folders were read only, altough its wierd because I managed to compile the APM code before from the same folders.
Thanks anyway.
What version of the code are you using? If it's straight off the SVN, it's not meant for public consumption and should not be expected to compile. If it's off a public zip, you'll need to explain better what you were trying to do.
You'll also need to reassure us that you read and followed the manual before posting this.