Owne / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Compile error #301

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile firmware in Linux

What is the expected output? What do you see instead?

Following compile error is found:

ArduPilotMega.cpp: In function 'bool print_log_menu()':
Log:98: error: 'get_log_boundaries' was not declared in this scope
ArduPilotMega.cpp: In function 'int8_t dump_log(uint8_t, const Menu::arg*)':
Log:123: error: 'get_log_boundaries' was not declared in this scope
ArduPilotMega.cpp: In function 'void start_new_log(byte)':
Log:247: error: 'get_log_boundaries' was not declared in this scope

What version of the product are you using? On what operating system?

APM 2.011, Arduino 0021 for Linux, OpenSuSE 11.3 64 bit

Please provide any additional information below.

Solution: set declaration of get_log_boundaries on top of Log.pde

Original issue reported on code.google.com by el_andre...@hotmail.com on 26 Mar 2011 at 7:29

GoogleCodeExporter commented 8 years ago
Can't replicate. Try upgrading to Arduino 22

Original comment by analogue...@gmail.com on 27 Mar 2011 at 12:44

GoogleCodeExporter commented 8 years ago
How strictly does Arduino stick to ISO C++? The function 'get_log_boundaries' 
is being used before its definition. This would produce in any ISO C++ compiler 
an error!

It compiles in Arduino 022.

Original comment by el_andre...@hotmail.com on 27 Mar 2011 at 7:19