Register / Login  |  Desktop view  |  Jump to bottom of page

tcMenu Arduinio library » compiling error menu cpp

Author: rtully
10/01/2020 17:54:20

Line in the menu.cpp

RENDERING_CALLBACK_NAME_INVOKE(fnSettingsRtCall, backSubItemRenderFn, "settings", -1, NULL)

gives compile error

'const char fnSettingsRtCallPgm [9]' previously defined here

Am i missing something basic here?

thanks

Author: davetcc
12/01/2020 10:07:17
The only way I could see this happening is if you had a menu with the same name repeated twice, please could you include an example project emf file that can recreate the issue. EMF files are JSON and can be pasted as code into here.

Author: rtully
13/01/2020 10:01:11
smilie doh! yup had a duplicate title hidden in there. Thanks

Author: davetcc
14/01/2020 08:58:17
If you enable the fully qualified naming option in the generator you can have the same menu name in different sub menus, but you can’t have two items with the same name in one submenu.

Glad it solved the problem!




Register / Login  |  Desktop view  |  Jump to top of page