CNCBASHER / ardupilot-mega

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

ardupilot mega compilation problem #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the latest ardupilot mega from the svn
2. Open it in the arduino IDE
3. Verify it (compile it)

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

The compilation should succeed.

Instead I get 

Log:32: error: conversión inválida de ‘int8_t (*)(uint8_t, const 
Menu::arg*)’ a ‘int (*)(uint8_t, const Menu::arg*)’
Log:32: error: conversión inválida de ‘int8_t (*)(uint8_t, const 
Menu::arg*)’ a ‘int (*)(uint8_t, const Menu::arg*)’

...... many other errors

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

latest svn 

Please provide any additional information below.

Changing the line 45 in 
libraries/AP_Common/include/menu.h from

int         (*func)(uint8_t argc, const struct arg *argv);

to

int8_t          (*func)(uint8_t argc, const struct arg *argv);

solves the problem

Original issue reported on code.google.com by ramezqui...@gmail.com on 25 Sep 2010 at 6:14

GoogleCodeExporter commented 9 years ago
Duplicate bug, already fixed.

Original comment by james.goppert@gmail.com on 25 Sep 2010 at 6:55

GoogleCodeExporter commented 9 years ago

Original comment by jasonshort on 26 Sep 2010 at 12:11

GoogleCodeExporter commented 9 years ago

Original comment by DrZip...@gmail.com on 27 Sep 2010 at 5:33